MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/commandline/comments/1luibp/utilshell_make_your_shell_script_actually_readable/cc3dww4/?context=3
r/commandline • u/taylorchu • Sep 06 '13
23 comments sorted by
View all comments
35
[removed] — view removed comment
-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/fstabutil-shell loses the readability war for "get/set/append", but might win the rest for simplicity reasonin 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.
-4
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.
2
2 u/umbrum_senecae Sep 07 '13 An elegant demonstration. My hat is off to you, good sir.
An elegant demonstration. My hat is off to you, good sir.
35
u/[deleted] Sep 06 '13 edited Sep 06 '13
[removed] — view removed comment