bash-5.1 distribution sources and documentation
This commit is contained in:
10
error.c
10
error.c
@@ -1,6 +1,6 @@
|
||||
/* error.c -- Functions for handling errors. */
|
||||
|
||||
/* Copyright (C) 1993-2009 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1993-2020 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU Bash, the Bourne Again SHell.
|
||||
|
||||
@@ -52,18 +52,18 @@ extern int errno;
|
||||
# include "bashhist.h"
|
||||
#endif
|
||||
|
||||
extern int executing_line_number __P((void));
|
||||
extern int executing_line_number PARAMS((void));
|
||||
|
||||
#if defined (JOB_CONTROL)
|
||||
extern pid_t shell_pgrp;
|
||||
extern int give_terminal_to __P((pid_t, int));
|
||||
extern int give_terminal_to PARAMS((pid_t, int));
|
||||
#endif /* JOB_CONTROL */
|
||||
|
||||
#if defined (ARRAY_VARS)
|
||||
extern const char * const bash_badsub_errmsg;
|
||||
#endif
|
||||
|
||||
static void error_prolog __P((int));
|
||||
static void error_prolog PARAMS((int));
|
||||
|
||||
/* The current maintainer of the shell. You change this in the
|
||||
Makefile. */
|
||||
@@ -201,7 +201,7 @@ report_error (format, va_alist)
|
||||
if (exit_immediately_on_error)
|
||||
{
|
||||
if (last_command_exit_value == 0)
|
||||
last_command_exit_value = 1;
|
||||
last_command_exit_value = EXECUTION_FAILURE;
|
||||
exit_shell (last_command_exit_value);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user