News for hackers. Stuff that matters.
Re:Write Posix Shell by kps on Saturday March 11, 2023 @11:28AM (#35109774)
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/91fdcfa934111f3846efb5034...

There are no comments on this comment yet.