4 ms·
I use Korn shell (ksh93) for quick scripts. Besides arrays and such (it's approximately a superset of bash, since bash copied some but not all of ksh), the kill
by kps 4y ago
I use Korn shell (ksh93) for quick scripts. Besides arrays and such (it's approximately a superset of bash, since bash copied some but not all of ksh), the killer feature is a declarative extended `getopts` that makes it trivial to provide even the quickest and dirtiest script with short/long option processing with full help, so that the purpose and usage of the script remain comprehensible five days or five years later.
https://gist.github.com/kpschoedel/91fdcfa934111f3846efb50341b7342d https://gist.github.com/kpschoedel/91fdcfa934111f3846efb5034...