Closed fgeorgatos closed 7 years ago
Case:
[fgeorgatos@node060 ~]$ bash -x -c 'echo hello' + set +x hello [fgeorgatos@node060 ~]$ unset BASH_ENV [fgeorgatos@node060 ~]$ bash -x -c 'echo hello' + echo hello hello [fgeorgatos@node060 ~]$
Example how to save+restore xtrace (-x) option, which would be the better way to handle this:
xtrace_saved="$(set -o | grep xtrace | grep 'on')"; set +x echo hello [ -n "$xtrace_saved" ] && set -x unset xtrace_saved
ETA?!
@johnnydevaprasad : we need some progress on this one...
calling this fixed via #69
and #67
Case:
Example how to save+restore xtrace (-x) option, which would be the better way to handle this: