bash-5.1 distribution sources and documentation

This commit is contained in:
Chet Ramey
2020-12-06 15:51:17 -05:00
parent 36f2c406ff
commit 8868edaf22
828 changed files with 94641 additions and 56509 deletions

10
error.c
View File

@@ -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);
}
}