http://y7egb5vi45k74makeixpfb7jnimfxm3gf233lb3ke2ldonozjk55nvad.onion/bash_shell_mistakes.html
See also: * [[scripting:basics#exit_codes | Exit codes]] Output vs. Return Value It’s important to remember the different ways to run a child command,
and whether you want the output, the return value, or neither. When you want to run a command (or a pipeline) and save (or print)
the output , whether as a string or an array, you use
Bash’s ’‘$(command)’’ syntax: \((ls -l
/tmp) newvariable=\) (printf “foo”) When you want to...