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

Return code of tau_exec #2

Open
spoutn1k opened this issue Jan 28, 2021 · 0 comments
Open

Return code of tau_exec #2

spoutn1k opened this issue Jan 28, 2021 · 0 comments

Comments

@spoutn1k
Copy link
Contributor

Hey everyone,

I am using tau_exec in a script and I relied on its returncode to check the status of the previous command. I encountered this case:

~> tau_exec non-existent-command
tau_exec: non-existent-command: command not found
~> echo $?
0

I expected it to be more than 0, as:

~> tau_exec /
/home/users/jskutnik/tau2/x86_64/bin/tau_exec: line 1379: /: Is a directory
~> echo $?
126

And the standard behaviour of such commands reflects this:

~> time non-existent-command
bash: non-existent-command: command not found...

real	0m0.226s
user	0m0.008s
sys	0m0.008s
~> echo $?
127

The returncode is empty here so I wanted to check if this was intended before doing anything.

Thanks !

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

No branches or pull requests

1 participant