diff options
author | Chet Ramey <chet.ramey@case.edu> | 2011-12-08 20:07:36 -0500 |
---|---|---|
committer | Chet Ramey <chet.ramey@case.edu> | 2011-12-08 20:07:36 -0500 |
commit | 0d8616ff0561faf503ebab8ef05b6ff1e2530e1a (patch) | |
tree | fc6d141e50e24c3e5708bc7d83d9edb2dd4347e4 /expr.c | |
parent | 5ccad779577c4b9be6196dfe837c40178d02f5cc (diff) | |
download | bash-0d8616ff0561faf503ebab8ef05b6ff1e2530e1a.tar.gz |
commit bash-20090409 snapshot
Diffstat (limited to 'expr.c')
-rw-r--r-- | expr.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -202,7 +202,7 @@ static int expr_depth; /* Location in the stack. */ static int expr_stack_size; /* Number of slots already allocated. */ extern char *this_command_name; -extern int unbound_vars_is_error; +extern int unbound_vars_is_error, last_command_exit_value; #if defined (ARRAY_VARS) extern const char * const bash_badsub_errmsg; @@ -923,6 +923,7 @@ expr_streval (tok, e) value = tok; #endif + last_command_exit_value = EXECUTION_FAILURE; err_unboundvar (value); #if defined (ARRAY_VARS) |