bash-5.0 distribution sources and documentation

This commit is contained in:
Chet Ramey
2019-01-07 09:27:52 -05:00
parent 6444760999
commit d233b485e8
528 changed files with 84836 additions and 67099 deletions
+5 -16
View File
@@ -25,6 +25,7 @@
#endif
#include "shell.h"
#include "execute_cmd.h"
#include "flags.h"
#if defined (BANG_HISTORY)
@@ -35,16 +36,6 @@
extern int set_job_control __P((int));
#endif
#if defined (RESTRICTED_SHELL)
extern char *shell_name;
#endif
extern int shell_initialized;
extern int builtin_ignoring_errexit;
/* -c, -s invocation options -- not really flags, but they show up in $- */
extern int want_pending_command, read_from_stdin;
/* **************************************************************** */
/* */
/* The Standard sh Flags. */
@@ -130,11 +121,8 @@ int hashing_enabled = 1;
#if defined (BANG_HISTORY)
/* Non-zero means that we are doing history expansion. The default.
This means !22 gets the 22nd line of history. */
# if defined (STRICT_POSIX)
int history_expansion = 0;
# else
int history_expansion = 1;
# endif
int history_expansion = HISTEXPAND_DEFAULT;
int histexp_flag = 0;
#endif /* BANG_HISTORY */
/* Non-zero means that we allow comments to appear in interactive commands. */
@@ -211,7 +199,7 @@ const struct flags_alist shell_flags[] = {
{ 'C', &noclobber },
{ 'E', &error_trace_mode },
#if defined (BANG_HISTORY)
{ 'H', &history_expansion },
{ 'H', &histexp_flag },
#endif /* BANG_HISTORY */
{ 'I', &no_invisible_vars },
{ 'P', &no_symbolic_links },
@@ -265,6 +253,7 @@ change_flag (flag, on_or_off)
{
#if defined (BANG_HISTORY)
case 'H':
history_expansion = histexp_flag;
if (on_or_off == FLAG_ON)
bash_initialize_history ();
break;