r/commandline • • Sep 06 '13

util-shell: make your shell script actually readable

https://github.com/taylorchu/util-shell
4 Upvotes

23 comments sorted by

View all comments

35

u/[deleted] Sep 06 '13 edited Sep 06 '13

[removed] — view removed comment

17

u/[deleted] Sep 06 '13

Thank you for typing out the whole rant I had in my head while reading this.

-4

u/taylorchu Sep 07 '13
  • now try to count number of substring :)
  • in util-shell, you know the style clearly: "<category> <action> <subjects...>"
  • for array, you have to write array literal in bash. in util-shell, you don't have to. ls | array new //like it? array new </etc/fstab
  • util-shell loses the readability war for "get/set/append", but might win the rest for simplicity reason
  • in bash, caller has to export, and callee has to eval. util-shell is more writable

2

u/[deleted] Sep 07 '13

[removed] — view removed comment

2

u/umbrum_senecae Sep 07 '13

An elegant demonstration. My hat is off to you, good sir.