Bash-4.2 direxpand with patch 23

This commit is contained in:
Chet Ramey
2012-03-13 09:53:04 -04:00
parent 2a6dda23e7
commit f3fa14fce7
3 changed files with 7 additions and 2 deletions
+5 -1
View File
@@ -200,7 +200,11 @@ report_error (format, va_alist)
va_end (args);
if (exit_immediately_on_error)
exit_shell (1);
{
if (last_command_exit_value == 0)
last_command_exit_value = 1;
exit_shell (last_command_exit_value);
}
}
void