Original by Mike Clark.
Now in only
957
645 bytes
! The classic reborn! AT&T UNIX System V-friendly!
Evaluates the Parameter Substitution table in POSIX.1-2017: Parameter Expansion:
- A POSIX.1-2017 compliant shell, or any of the ones listed in Supported shells.
Paste in a macOS Terminal or Linux shell prompt:
/bin/sh -c "$(curl -fsSL https://github.com/Neved4/colort.sh/tree/master/install.sh"
grok.sh [classic | modern | fusion]
Shell | Version | Supported |
---|---|---|
bash |
5.2.15 |
Yes |
dash |
0.5.12 |
Yes |
ksh93 |
93u+m/1.0.7 |
Yes |
mksh |
59c |
Yes |
oksh |
7.3 |
Yes |
osh |
0.18.0 |
Yes |
posh |
0.14.1 |
Yes |
yash |
2.55 |
Yes |
zsh |
5.9 |
Yes |
elvish |
0.19.2 |
No |
etsh |
5.4.0 |
No |
fish |
3.6.1 |
No |
tcsh |
6.21.00 |
No |
nsh |
0.4.2 |
No |
nu |
0.85.05 |
No |
ysh |
0.18.0 |
No |
xonsh |
0.14.1 |
No |
This script conforms to ISO 9945:2009, also known as POSIX.1-2017.1
grok.sh
is licensed under the terms of the MIT License.
See the LICENSE file for details.
Footnotes
-
IEEE Std 1003.1-2017: Standard for Information Technology — Portable Operating System Interface (POSIX®), ISO/IEC/IEEE 9945:2009/COR 2:2017. URL: https://pubs.opengroup.org/onlinepubs/9699919799/ ↩