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

sh: unbound variable error suppressed by status #263

Open
i4ki opened this issue Mar 19, 2018 · 0 comments
Open

sh: unbound variable error suppressed by status #263

i4ki opened this issue Mar 19, 2018 · 0 comments

Comments

@i4ki
Copy link
Collaborator

i4ki commented Mar 19, 2018

Nash reports errors of unbounded variables, but when we get the status code of the command statement the error is being ignored.

λ> ls $vardonotexists
ERROR: <interactive>:1:3: Variable $vardonotexists not set on shell parent scope
λ> var _, status <= ls $vardonotexists
λ>  

That's unacceptable, because this is a programmer's error.

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