[Abcde-users] Patch to tidy the main routine, and avert loosing variable declarations by not using subshells
Roger
rogerx.oss at gmail.com
Tue Mar 24 12:44:42 GMT 2015
Here's a few more trivial notes concerning subshells.
1) Only the processes (ie. variables) stipulated in the first level of curly
braces are run within the scope of the original Bash shell. Any nested curly
braces will run in their own scoped Bash shell.
2) Basically, the use of pipes is causing additional subshells, so don't use
that method when attempting to interrogate what's going on.
The above is referenced from:
http://unix.stackexchange.com/questions/127334/bash-subshell-creation-with-curly-braces
Also see for further notes concerning differences between parenthesis & curly
braces:
Grymoire.com; Changing Precedence
http://www.grymoire.com/Unix/Sh.html#uh-74
--
Roger
http://rogerx.freeshell.org/
More information about the Abcde-users
mailing list