summaryrefslogtreecommitdiff
path: root/expr.c
diff options
context:
space:
mode:
authorChet Ramey <chet.ramey@case.edu>2011-12-08 20:07:36 -0500
committerChet Ramey <chet.ramey@case.edu>2011-12-08 20:07:36 -0500
commit0d8616ff0561faf503ebab8ef05b6ff1e2530e1a (patch)
treefc6d141e50e24c3e5708bc7d83d9edb2dd4347e4 /expr.c
parent5ccad779577c4b9be6196dfe837c40178d02f5cc (diff)
downloadbash-0d8616ff0561faf503ebab8ef05b6ff1e2530e1a.tar.gz
commit bash-20090409 snapshot
Diffstat (limited to 'expr.c')
-rw-r--r--expr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/expr.c b/expr.c
index c2516005..c119debc 100644
--- a/expr.c
+++ b/expr.c
@@ -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)