]> git.ipfire.org Git - thirdparty/bash.git/commitdiff
commit bash-20050623 snapshot
authorChet Ramey <chet.ramey@case.edu>
Sat, 3 Dec 2011 18:47:46 +0000 (13:47 -0500)
committerChet Ramey <chet.ramey@case.edu>
Sat, 3 Dec 2011 18:47:46 +0000 (13:47 -0500)
CWRU/CWRU.chlog
bashhist.c
bashline.c
doc/bash.1
doc/bashref.texi
doc/version.texi
variables.c

index 5c758cf818f93b08152dc6ce2fc58b6600600653..845f09fad1f9021d94952bfe7e5a70f7418b934d 100644 (file)
@@ -11609,3 +11609,19 @@ jobs.c
        - add a run-time check for WCONTINUED being defined in header files
          but rejected with EINVAL by waitpid().  Fix from Maciej Rozycki
          <macro@linux-mips.org>
+
+                                  6/20
+                                  ----
+bashhist.c
+       - make sure calls to sv_histchars are protected by #ifdef BANG_HISTORY
+       - ditto for calls to history_expand_line_internal
+
+                                  6/23
+                                  ----
+doc/bashref.texi
+       - remove extra blank lines in @menu constructs
+
+variables.c
+       - assign export_env to environ (extern char **) every time it changes
+         (mostly in add_to_export_env define), so maybe getenv will work on
+         systems that don't allow it to be replaced
index a271567cf7a435bdf24193be14583a0db2138502..73637dc144d5fe07087b69e3f8b6bff9c735a553 100644 (file)
@@ -217,7 +217,9 @@ bash_initialize_history ()
   history_quotes_inhibit_expansion = 1;
   history_search_delimiter_chars = ";&()|<>";
   history_inhibit_expansion_function = bash_history_inhibit_expansion;
+#if defined (BANG_HISTORY)
   sv_histchars ("histchars");
+#endif
 }
 
 void
index 8fed8a363ffbd270f0c66ee1c584977019b9ad50..ebe2304d9bb426bb6e632424fd59d444949db564 100644 (file)
@@ -1905,7 +1905,7 @@ tcsh_magic_space (count, ignore)
   else
     return (1);
 }
-#endif
+#endif /* BANG_HISTORY */
 
 /* History and alias expand the line. */
 static int
@@ -1914,7 +1914,10 @@ history_and_alias_expand_line (count, ignore)
 {
   char *new_line;
 
+  new_line = 0;
+#if defined (BANG_HISTORY)
   new_line = history_expand_line_internal (rl_line_buffer);
+#endif
 
 #if defined (ALIAS)
   if (new_line)
@@ -1950,7 +1953,10 @@ shell_expand_line (count, ignore)
   char *new_line;
   WORD_LIST *expanded_string;
 
+  new_line = 0;
+#if defined (BANG_HISTORY)
   new_line = history_expand_line_internal (rl_line_buffer);
+#endif
 
 #if defined (ALIAS)
   if (new_line)
index 1c6562ac0c6cf971eed236f869349117464ef302..8c9f6045f52c4558ecdf4db5bf4a02aa3a8724a7 100644 (file)
@@ -7456,7 +7456,7 @@ input is not read within \fItimeout\fP seconds.
 This option has no effect if \fBread\fP is not reading input from the
 terminal or a pipe.
 .TP
-.B \-u \fIfd\FP
+.B \-u \fIfd\fP
 Read input from file descriptor \fIfd\fP.
 .PD
 .PP
index c74c2b8272daeaaa06077c4665df8366b051f5a9..401bc6682023566941180d19c5eabf43a2d0d5b8 100644 (file)
@@ -94,46 +94,28 @@ reference on shell behavior.
 
 @menu
 * Introduction::               An introduction to the shell.
-
 * Definitions::                        Some definitions used in the rest of this
                                manual.
-
 * Basic Shell Features::       The shell "building blocks".
-
 * Shell Builtin Commands::     Commands that are a part of the shell.
-
 * Shell Variables::            Variables used or set by Bash.
-
 * Bash Features::              Features found only in Bash.
-
-* Job Control::                        A chapter describing what job control is
-                               and how Bash allows you to use it.
-
-* Using History Interactively::        Chapter dealing with history expansion
-                               rules.
-
+* Job Control::                        What job control is and how Bash allows you
+                               to use it.
+* Using History Interactively::        Command History Expansion
 * Command Line Editing::       Chapter describing the command line
                                editing features.
-
 * Installing Bash::            How to build and install Bash on your system.
-
 * Reporting Bugs::             How to report bugs in Bash.
-
 * Major Differences From The Bourne Shell::    A terse list of the differences
                                                between Bash and historical
                                                versions of /bin/sh.
-
 * Copying This Manual::                Copying this manual.
-
 * Builtin Index::              Index of Bash builtin commands.
-
 * Reserved Word Index::                Index of Bash reserved words.
-
 * Variable Index::             Quick reference helps you find the
                                variable you want.
-
 * Function Index::             Index of bindable Readline functions.
-
 * Concept Index::              General index for concepts described in
                                this manual.
 @end menu
@@ -143,7 +125,6 @@ reference on shell behavior.
 @chapter Introduction
 @menu
 * What is Bash?::              A short description of Bash.
-
 * What is a shell?::           A brief introduction to shells.
 @end menu
 
@@ -371,9 +352,7 @@ and to named files, and how the shell executes commands.
 @section Shell Syntax
 @menu
 * Shell Operation::    The basic operation of the shell.
-
 * Quoting::            How to remove the special meaning from characters.
-
 * Comments::           How to specify comments.
 @end menu
 
@@ -444,7 +423,6 @@ status (@pxref{Exit Status}).
 * Double Quotes::      How to suppress most of the interpretation of a
                        sequence of characters.
 * ANSI-C Quoting::     How to expand ANSI-C sequences in quoted strings.
-
 * Locale Translation:: How to translate strings into different languages.
 @end menu
 
@@ -2227,21 +2205,15 @@ is not specified.  If the file does not exist, it is created.
 @menu
 * Simple Command Expansion::   How Bash expands simple commands before
                                executing them.
-
 * Command Search and Execution::       How Bash finds commands and runs them.
-
 * Command Execution Environment::      The environment in which Bash
                                        executes commands that are not
                                        shell builtins.
-
 * Environment::                The environment given to a command.
-
 * Exit Status::                The status returned by commands and how Bash
                        interprets it.
-
 * Signals::            What happens when Bash or a command it runs
                        receives a signal.
-
 @end menu
 
 @node Simple Command Expansion
@@ -6414,23 +6386,16 @@ Other independent ports exist for
 
 @menu
 * Basic Installation:: Installation instructions.
-
 * Compilers and Options::      How to set special options for various
                                systems.
-
 * Compiling For Multiple Architectures::       How to compile Bash for more
                                                than one kind of system from
                                                the same source tree.
-
 * Installation Names:: How to set the various paths used by the installation.
-
 * Specifying the System Type:: How to configure Bash for a particular system.
-
 * Sharing Defaults::   How to share default configuration values among GNU
                        programs.
-
 * Operation Controls:: Options recognized by the configuration program.
-
 * Optional Features::  How to enable and disable optional features when
                        building Bash.
 @end menu
index 84ff83a4bed4a8f436b0093614a53f19f93d2f7f..292eee56c259a79f5a7e56a60342921be5d16f42 100644 (file)
@@ -2,7 +2,7 @@
 Copyright (C) 1988-2005 Free Software Foundation, Inc.
 @end ignore
 
-@set LASTCHANGE Sat Apr 30 19:08:57 EDT 2005
+@set LASTCHANGE Thu Jun 23 09:48:04 EDT 2005
 
 @set EDITION 3.1-devel
 @set VERSION 3.1-devel
index 375556c1c6d02241d0fa8231e1ad840186a95eda..2a58a14f868b24ed2f0546dadf7067006bc7a851 100644 (file)
@@ -70,6 +70,8 @@
 
 #define ifsname(s)     ((s)[0] == 'I' && (s)[1] == 'F' && (s)[2] == 'S' && (s)[3] == '\0')
 
+extern char **environ;
+
 /* Variables used here and defined in other files. */
 extern int posixly_correct;
 extern int line_number;
@@ -3134,6 +3136,7 @@ do \
       { \
        export_env_size += 16; \
        export_env = strvec_resize (export_env, export_env_size); \
+       environ = export_env; \
       } \
     export_env[export_env_index++] = (do_alloc) ? savestring (envstr) : envstr; \
     export_env[export_env_index] = (char *)NULL; \
@@ -3243,6 +3246,7 @@ maybe_make_export_env ()
        {
          export_env_size = new_size;
          export_env = strvec_resize (export_env, export_env_size);
+         environ = export_env;
        }
       export_env[export_env_index = 0] = (char *)NULL;