Skip to content
This repository has been archived by the owner on May 21, 2019. It is now read-only.

Exit Status Support #244

Open
Potherca opened this issue Feb 17, 2016 · 1 comment
Open

Exit Status Support #244

Potherca opened this issue Feb 17, 2016 · 1 comment

Comments

@Potherca
Copy link

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...

@deckar01
Copy link

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 free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants