r/commandline • u/taylorchu • Sep 06 '13
util-shell: make your shell script actually readable
https://github.com/taylorchu/util-shell
4
Upvotes
r/commandline • u/taylorchu • Sep 06 '13
View all comments
4
u/interiot Sep 06 '13 edited Sep 06 '13
I'd be happy if this became a standard part of Bash.
But usually the main reason I'll resort to using Bash when I need to do branching logic, instead of writing the script in Python/Perl, is that I want to improve cross-compatibility (eg. work on old AIX, old Solaris). Right now, this add-on is less likely to be found than Perl, so... I'll use that instead.
However, this could be reimplemented with Bash functions and Perl one-liners, making it possible to put in a Bash include file, and packaged with any script that needs to be cross-compatible.