Skip to main content
2 of 2
added 1 character in body
Hauke Laging
  • 94.5k
  • 21
  • 132
  • 185

You could call scripts (or a shell with a command line) explicitly with options:

shopt -s expand_aliases
alias shell_call='bash -$-'
shell_call /path/to/script

Changes to the script would automatically be passed to child shells. This approch does only turn features on, though.

Hauke Laging
  • 94.5k
  • 21
  • 132
  • 185