From 0d8616ff0561faf503ebab8ef05b6ff1e2530e1a Mon Sep 17 00:00:00 2001 From: Chet Ramey Date: Thu, 8 Dec 2011 20:07:36 -0500 Subject: commit bash-20090409 snapshot --- expr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'expr.c') 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) -- cgit v1.2.1