Skip to main content
1 of 2
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