Re:Zsh is your friend.
by googletron on Tuesday January 31, 2012 @11:53AM
(#3534045)
I think your complaining more about shell scripting rather than the terminal use itself.
[ Parent
| on HN ]
I think you're underestimating how frequently some folks do things like:
for x in 'seq 1 100'; do echo "something with $x"; done
(Please forgive lack of backticks on my cellphone keyboard) Or many variations, like every line in a file, or result of a command piped to sed or awk and then processed. Init scripts are about the only shell scripts I write anymore, but I use frequently use it from the commandline, typically on remote terminals.
Re:Zsh is your friend.
by fluidcruft on Tuesday January 31, 2012 @12:49PM
(#3534313)
Just forget backticks even exist.
I now always use $(cmd) instead of `cmd`. Much easier to read and it fits in better with process substitution <(cmd). More importantly it all nests sanely $(cmd1 $(cmd2)) and works well in quotes "Blah: $(cmd1 $(cmd2))".