nash icon indicating copy to clipboard operation
nash copied to clipboard

sh: unbound variable error suppressed by status

Open i4ki opened this issue 7 years ago • 0 comments

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.

i4ki avatar Mar 19 '18 10:03 i4ki