by chasil · 4y ago · 0 comments
"I am a strong believer that Bourne-derived languages are extremely bad, on the same order of badness as Perl, for programming, and consider programming sh for any purpose other than as a super-portable, lowest-common-denominator platform for build or bootstrap scripts and the like, as an extremely misguided endeavor."
Many of those sh tricks you link to are better even in the common ksh/bash/zsh subset than in pure POSIX.
Because the shell needs such an advanced parser, it shows that the language is full of ambiguity and pitfalls.
The slides for the parent presentation have this gem:
Quiz: Which is the command that outputs \\ ?
1 echo "\\\"
2 echo "\\\\"
3 echo "\\\\\\"
The language should be clearer, and less ambiguous.
what else may come in mind to use?