Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand work on commit 4c92836, because it breaks bash tracing, as it has now #64

Closed
fgeorgatos opened this issue Nov 10, 2016 · 4 comments
Assignees
Labels

Comments

@fgeorgatos
Copy link
Collaborator

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
@fgeorgatos
Copy link
Collaborator Author

ETA?!

@fgeorgatos
Copy link
Collaborator Author

@johnnydevaprasad : we need some progress on this one...

@fgeorgatos
Copy link
Collaborator Author

calling this fixed via #69

@fgeorgatos
Copy link
Collaborator Author

and #67

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants