3 ms·
Note that these options don't propagate to subshells. So be avare of your commands between ` marks.
by leni536 11y ago
Note that these options don't propagate to subshells. So be avare of your commands between ` marks.
- jwilk 11y agoThey do propagate to subshells. The only exception is that bash (unlike other shells) clears -e in command substitutions.
- bboreham 11y agoThey might propagate to subshells. Someone did a lot of checking: http://www.in-ulm.de/~mascheck/various/set-e/ http://www.in-ulm.de/~mascheck/various/set-e/
- harry8 11y agoOn the subject as an aside to the point you're making, I'd recommend never using `backticks` $() is posix and far less error prone. It can easily do multiple nested sub shells, escaping is less insane, keeps your teeth whiter and smiler brighter and all that sort of things. `backticks` stomps on your lunch, steals the affection of your (girl/boy) and makes you feel stupid.