You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 21, 2019. It is now read-only.
When I run a command that returns an error, I can not get the error status with $?
I have casually looked at the code to see if it might be possible to add the exitCode to the prompt arrow but it does not seem to be passed on to the error handler (only the message does).
I could be wrong but these two feel related...
The text was updated successfully, but these errors were encountered:
There seems to be something funky going on with the command execution.
In xfce4-terminal:
junk;echo$?
junk: command not found
127
In upterm:
junk;echo$?
Upterm: command"junk" not found.
junk;echo"hello?"
Upterm: command"junk" not found.
sh -e "junk";echo$?
sh: 0: Can't open junk 127
Trying to run an unknown command aborts any remaining actions, but spawning a shell with the same error allows them to continue. Other shells do hook into unknown command errors to offer suggestions, but they don't change the default execution flow of the shell.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When I run a command that returns an error, I can not get the error status with
$?
I have casually looked at the code to see if it might be possible to add the
exitCode
to the prompt arrow but it does not seem to be passed on to the error handler (only the message does).I could be wrong but these two feel related...
The text was updated successfully, but these errors were encountered: