]> git.ipfire.org Git - thirdparty/bash.git/commitdiff
commit bash-20040914 snapshot
authorChet Ramey <chet.ramey@case.edu>
Sat, 3 Dec 2011 18:36:28 +0000 (13:36 -0500)
committerChet Ramey <chet.ramey@case.edu>
Sat, 3 Dec 2011 18:36:28 +0000 (13:36 -0500)
13 files changed:
CWRU/CWRU.chlog
autom4te.cache/requests
doc/bash.1
doc/faq.headers.mail
doc/faq.headers.news
doc/faq.headers.news2
doc/faq.mail
doc/faq.news
doc/faq.news2
doc/faq.version
expr.c
lib/sh/strnlen.c
variables.c

index 0e715d22bd704fadcb26a44e3105ffe044d09682..0aaa078e19c475ee66b8618b860baddae8a97914 100644 (file)
@@ -10028,3 +10028,12 @@ parse.y
        - don't attempt to parse a compound assignment specially unless we're
          in a position where an assignment statement is acceptable, or
          PST_ASSIGNOK is set
+
+                                  9/13
+                                  ----
+variables.c
+       - make BASH_ARGC, BASH_ARGV, BASH_LINENO, and BASH_SOURCE
+         non-unsettable, since the shell uses those values internally
+
+expr.c
+       - make exponentiation right-associative, as is apparently correct
index ada1957639af8bc25a7b4d191fe12a844ad19ed3..6ac24b719702a231b320d3897b2ddf3f06819b4b 100644 (file)
                         'configure.in'
                       ],
                       {
-                        'AC_PROG_GCC_TRADITIONAL' => 1,
-                        'AC_PROG_AWK' => 1,
-                        'AC_INIT' => 1,
-                        'AC_FUNC_REALLOC' => 1,
-                        'AC_FUNC_UTIME_NULL' => 1,
+                        'AC_HEADER_MAJOR' => 1,
+                        'AC_FUNC_GETPGRP' => 1,
+                        'AC_CONFIG_SUBDIRS' => 1,
+                        'AC_HEADER_STAT' => 1,
+                        'AC_FUNC_LSTAT' => 1,
+                        'AC_HEADER_DIRENT' => 1,
+                        'AC_FUNC_STAT' => 1,
+                        'AC_FUNC_SELECT_ARGTYPES' => 1,
+                        'AC_FUNC_CHOWN' => 1,
+                        'AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK' => 1,
+                        'AC_STRUCT_ST_BLOCKS' => 1,
+                        'AC_TYPE_PID_T' => 1,
+                        'AC_FUNC_STRERROR_R' => 1,
                         'AC_FUNC_VPRINTF' => 1,
-                        'AC_FUNC_STRTOD' => 1,
-                        'm4_include' => 1,
-                        'AC_FUNC_STRFTIME' => 1,
-                        'AM_GNU_GETTEXT' => 1,
-                        'AC_TYPE_OFF_T' => 1,
-                        'AC_C_CONST' => 1,
                         'AH_OUTPUT' => 1,
-                        'AC_FUNC_STAT' => 1,
+                        'm4_pattern_allow' => 1,
+                        'AC_CONFIG_HEADERS' => 1,
+                        'AC_FUNC_MEMCMP' => 1,
+                        'AC_HEADER_STDC' => 1,
+                        'AC_CHECK_HEADERS' => 1,
+                        'AC_FUNC_CLOSEDIR_VOID' => 1,
+                        'm4_include' => 1,
                         'AM_AUTOMAKE_VERSION' => 1,
-                        'AC_STRUCT_TM' => 1,
+                        'AC_CONFIG_AUX_DIR' => 1,
+                        'AC_FUNC_MALLOC' => 1,
+                        'AC_DECL_SYS_SIGLIST' => 1,
+                        'AC_C_CONST' => 1,
                         'AC_FUNC_SETPGRP' => 1,
-                        'AC_PATH_X' => 1,
-                        'AM_PROG_CC_C_O' => 1,
-                        'AC_FUNC_CHOWN' => 1,
-                        'AC_FUNC_ALLOCA' => 1,
-                        'AC_PROG_LN_S' => 1,
                         'AC_CANONICAL_SYSTEM' => 1,
-                        'm4_pattern_allow' => 1,
-                        'AM_INIT_AUTOMAKE' => 1,
-                        'AC_FUNC_SELECT_ARGTYPES' => 1,
+                        'AC_C_VOLATILE' => 1,
+                        'AC_FUNC_FSEEKO' => 1,
                         'AC_FUNC_MBRTOWC' => 1,
+                        'AC_STRUCT_TM' => 1,
+                        'AC_FUNC_STRCOLL' => 1,
+                        'AC_HEADER_SYS_WAIT' => 1,
+                        'AC_PROG_LIBTOOL' => 1,
+                        'AC_CHECK_TYPES' => 1,
+                        'AC_CONFIG_FILES' => 1,
+                        'AC_CHECK_LIB' => 1,
+                        'include' => 1,
+                        'AC_FUNC_GETGROUPS' => 1,
+                        'AC_PATH_X' => 1,
+                        'AC_PROG_CC' => 1,
+                        'AC_FUNC_GETLOADAVG' => 1,
+                        'AC_HEADER_TIME' => 1,
+                        'AC_REPLACE_FNMATCH' => 1,
                         'AC_LIBSOURCE' => 1,
+                        'AC_PROG_LN_S' => 1,
+                        'AC_FUNC_OBSTACK' => 1,
+                        'AC_PROG_LEX' => 1,
+                        'AC_FUNC_STRTOD' => 1,
+                        'AC_TYPE_MODE_T' => 1,
+                        'AC_CHECK_MEMBERS' => 1,
+                        'AC_FUNC_ERROR_AT_LINE' => 1,
                         'AM_CONDITIONAL' => 1,
-                        'AC_HEADER_DIRENT' => 1,
-                        'AC_FUNC_STRERROR_R' => 1,
-                        'AC_C_INLINE' => 1,
-                        'AC_TYPE_PID_T' => 1,
-                        'AC_HEADER_MAJOR' => 1,
-                        'AC_CHECK_FUNCS' => 1,
+                        'AC_STRUCT_TIMEZONE' => 1,
+                        'AC_FUNC_REALLOC' => 1,
+                        'AM_PROG_CC_C_O' => 1,
+                        'AM_GNU_GETTEXT' => 1,
                         'AC_PROG_MAKE_SET' => 1,
-                        'AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK' => 1,
-                        'AC_TYPE_UID_T' => 1,
-                        'm4_pattern_forbid' => 1,
-                        'AC_FUNC_GETLOADAVG' => 1,
-                        'AC_HEADER_STDC' => 1,
-                        'AC_TYPE_SIGNAL' => 1,
-                        'include' => 1,
-                        'AC_PROG_RANLIB' => 1,
-                        'AC_HEADER_STAT' => 1,
-                        'AC_DECL_SYS_SIGLIST' => 1,
-                        'AC_FUNC_MALLOC' => 1,
+                        'AC_FUNC_UTIME_NULL' => 1,
+                        'AC_PROG_CXX' => 1,
+                        'AC_FUNC_MMAP' => 1,
+                        'AC_PROG_GCC_TRADITIONAL' => 1,
+                        'AC_DEFINE_TRACE_LITERAL' => 1,
+                        'AC_PROG_AWK' => 1,
                         'AC_FUNC_FORK' => 1,
-                        'AC_CONFIG_AUX_DIR' => 1,
-                        'AC_SUBST' => 1,
-                        'AC_FUNC_MEMCMP' => 1,
-                        'AC_FUNC_WAIT3' => 1,
+                        'AC_FUNC_ALLOCA' => 1,
                         'AC_FUNC_SETVBUF_REVERSED' => 1,
+                        'AC_TYPE_OFF_T' => 1,
+                        'AC_PROG_RANLIB' => 1,
+                        'AC_TYPE_SIGNAL' => 1,
                         'AC_PROG_CPP' => 1,
-                        'AC_FUNC_GETGROUPS' => 1,
-                        'AC_CANONICAL_HOST' => 1,
-                        'AC_FUNC_CLOSEDIR_VOID' => 1,
+                        'AC_C_INLINE' => 1,
+                        'AM_INIT_AUTOMAKE' => 1,
+                        'AC_TYPE_UID_T' => 1,
                         'AC_PROG_YACC' => 1,
-                        'AC_STRUCT_ST_BLOCKS' => 1,
-                        'AC_PROG_LIBTOOL' => 1,
-                        'AC_FUNC_FSEEKO' => 1,
-                        'AC_CONFIG_FILES' => 1,
-                        'AC_PROG_INSTALL' => 1,
                         'AC_FUNC_STRNLEN' => 1,
-                        'AC_CONFIG_HEADERS' => 1,
-                        'AC_CHECK_TYPES' => 1,
-                        'AC_CHECK_MEMBERS' => 1,
+                        'AC_PROG_INSTALL' => 1,
+                        'AC_FUNC_WAIT3' => 1,
+                        'AC_CHECK_FUNCS' => 1,
                         'AM_MAINTAINER_MODE' => 1,
-                        'AC_CHECK_LIB' => 1,
-                        'AC_TYPE_SIZE_T' => 1,
-                        'AC_STRUCT_TIMEZONE' => 1,
+                        'AC_CANONICAL_HOST' => 1,
+                        'AC_FUNC_STRFTIME' => 1,
                         'AC_FUNC_MKTIME' => 1,
+                        'AC_SUBST' => 1,
+                        'AC_TYPE_SIZE_T' => 1,
+                        'AC_INIT' => 1,
                         'AC_FUNC_GETMNTENT' => 1,
-                        'AC_PROG_LEX' => 1,
-                        'AC_HEADER_SYS_WAIT' => 1,
-                        'AC_FUNC_MMAP' => 1,
-                        'AC_FUNC_GETPGRP' => 1,
-                        'AC_C_VOLATILE' => 1,
-                        'AC_TYPE_MODE_T' => 1,
-                        'AC_CHECK_HEADERS' => 1,
-                        'AC_FUNC_LSTAT' => 1,
-                        'AC_CONFIG_SUBDIRS' => 1,
-                        'AC_FUNC_STRCOLL' => 1,
-                        'AC_REPLACE_FNMATCH' => 1,
-                        'AC_DEFINE_TRACE_LITERAL' => 1,
-                        'AC_HEADER_TIME' => 1,
-                        'AC_PROG_CXX' => 1,
-                        'AC_PROG_CC' => 1,
-                        'AC_FUNC_ERROR_AT_LINE' => 1,
-                        'AC_FUNC_OBSTACK' => 1
+                        'm4_pattern_forbid' => 1
                       }
                     ], 'Request' )
            );
index 67ca943facdcfec39f401d4adae6c75629b6e9f6..5fb9b630d4d6790ec48c2015025d799a051de873 100644 (file)
@@ -3935,7 +3935,7 @@ sends a
 .B SIGHUP
 to all jobs when an interactive login shell exits.
 .PP
-If \Bbash\fP is waiting for a command to complete and receives a signal
+If \fBbash\fP is waiting for a command to complete and receives a signal
 for which a trap has been set, the trap will not be executed until
 the command completes. 
 When \fBbash\fP is waiting for an asynchronous command via the \fBwait\fP
index d65204ea3544fead2641013defd3c5315e0e1c1d..cabad53f2eb6da8b4030617c4026ec6f8e53d498 100644 (file)
@@ -1,5 +1,5 @@
 From: chet@po.cwru.edu (Chet Ramey)
 To: bug-bash@gnu.org
-Subject: BASH Frequently-Asked Questions (FAQ version 3.27)
+Subject: BASH Frequently-Asked Questions (FAQ version 3.29)
 Reply-To: chet@po.cwru.edu
 
index 1f5dcd2c5fead49247651d6a16224ed5ab144bef..9c6e1fcf6606474fb61de96856fc7affb04808fa 100644 (file)
@@ -1,7 +1,7 @@
 Newsgroups: comp.unix.shell,comp.unix.questions
 Distribution: world
 From: chet@po.cwru.edu (Chet Ramey)
-Subject: BASH Frequently-Asked Questions (FAQ version 3.27)
+Subject: BASH Frequently-Asked Questions (FAQ version 3.29)
 Organization: Case Western Reserve University
 Summary: A's to Q's about BASH, the Bourne-Again SHell
 Reply-To: chet@po.cwru.edu
index a49abd0799bf58e843a94225bfcef7e3146561b1..28faf0738665e23705bd87c2cc6a2a40b1d7ef3a 100644 (file)
@@ -1,6 +1,6 @@
 Newsgroups: comp.unix.shell,comp.unix.questions,comp.answers,news.answers
 From: chet@po.cwru.edu (Chet Ramey)
-Subject: [gnu.bash.bug] BASH Frequently-Asked Questions (FAQ version 3.27)
+Subject: [gnu.bash.bug] BASH Frequently-Asked Questions (FAQ version 3.29)
 Organization: Case Western Reserve University
 Summary: A's to Q's about BASH, the Bourne-Again SHell
 Reply-To: chet@po.cwru.edu
index cce087756ad69973ac0c8b6896043f3312bf6951..fa53475299be28f2796047344b9e7af4a937c480 100644 (file)
@@ -1,18 +1,18 @@
 From: chet@po.cwru.edu (Chet Ramey)
 To: bug-bash@gnu.org
-Subject: BASH Frequently-Asked Questions (FAQ version 3.27)
+Subject: BASH Frequently-Asked Questions (FAQ version 3.29)
 Reply-To: chet@po.cwru.edu
 
 Archive-name: unix-faq/shell/bash
 Posting-Frequency: monthly
 Submitted-By: chet@po.cwru.edu (Chet Ramey)
-Last-Modified: Tue Aug  3 09:54:24 EDT 2004
-FAQ-Version: 3.27
+Last-Modified: Mon Sep 13 09:03:53 EDT 2004
+FAQ-Version: 3.29
 Bash-Version: 3.0
 URL: ftp://ftp.cwru.edu/pub/bash/FAQ
 Maintainer: chet@po.cwru.edu (Chet Ramey)
 
-This is the Bash FAQ, version 3.27, for Bash version 3.0.
+This is the Bash FAQ, version 3.29, for Bash version 3.0.
 
 This document contains a set of frequently-asked questions concerning
 Bash, the GNU Bourne-Again Shell.  Bash is a freely-available command
@@ -195,16 +195,15 @@ earlier Minix versions yet.
 
 Bash has been ported to versions of Windows implementing the Win32
 programming interface.  This includes Windows 95 and Windows NT.
-The port was done by Cygnus Solutions as part of their CYGWIN
-project.  For more information about the project, look at the URLs
-
-http://www.cygwin.com/
-http://sourceware.cygnus.com/cygwin
+The port was done by Cygnus Solutions (now part of Red Hat) as part
+of their CYGWIN project.  For more information about the project, see
+http://www.cygwin.com/.
 
 Cygnus originally ported bash-1.14.7, and that port was part of their
 early GNU-Win32 (the original name) releases.  Cygnus has also done a
-port of bash-2.05 to the CYGWIN environment, and it is available as
-part of their current release.
+port of bash-2.05b to the CYGWIN environment, and it is available as
+part of their current release.  Bash-3.0 is currently being tested and
+should be available soon.
 
 Bash-2.05b and later versions should require no local Cygnus changes to
 build and run under CYGWIN.
@@ -1777,7 +1776,6 @@ These are features that may or may not appear in a future version of bash.
 
 breaking some of the shell functionality into embeddable libraries
 a module system like zsh's, using dynamic loading like builtins
-date-stamped command history
 a bash programmer's guide with a chapter on creating loadable builtins
 a better loadable interface to perl with access to the shell builtins and
        variables (contributions gratefully accepted)
index c3c2b405b7013cf8082cc53e288019a3bde18ca0..fbdc65ff5a3f91ed4c58bae2854d4e77ce137f07 100644 (file)
@@ -1,7 +1,7 @@
 Newsgroups: comp.unix.shell,comp.unix.questions
 Distribution: world
 From: chet@po.cwru.edu (Chet Ramey)
-Subject: BASH Frequently-Asked Questions (FAQ version 3.27)
+Subject: BASH Frequently-Asked Questions (FAQ version 3.29)
 Organization: Case Western Reserve University
 Summary: A's to Q's about BASH, the Bourne-Again SHell
 Reply-To: chet@po.cwru.edu
@@ -10,13 +10,13 @@ Followup-To: poster
 Archive-name: unix-faq/shell/bash
 Posting-Frequency: monthly
 Submitted-By: chet@po.cwru.edu (Chet Ramey)
-Last-Modified: Tue Aug  3 09:54:24 EDT 2004
-FAQ-Version: 3.27
+Last-Modified: Mon Sep 13 09:03:53 EDT 2004
+FAQ-Version: 3.29
 Bash-Version: 3.0
 URL: ftp://ftp.cwru.edu/pub/bash/FAQ
 Maintainer: chet@po.cwru.edu (Chet Ramey)
 
-This is the Bash FAQ, version 3.27, for Bash version 3.0.
+This is the Bash FAQ, version 3.29, for Bash version 3.0.
 
 This document contains a set of frequently-asked questions concerning
 Bash, the GNU Bourne-Again Shell.  Bash is a freely-available command
@@ -199,16 +199,15 @@ earlier Minix versions yet.
 
 Bash has been ported to versions of Windows implementing the Win32
 programming interface.  This includes Windows 95 and Windows NT.
-The port was done by Cygnus Solutions as part of their CYGWIN
-project.  For more information about the project, look at the URLs
-
-http://www.cygwin.com/
-http://sourceware.cygnus.com/cygwin
+The port was done by Cygnus Solutions (now part of Red Hat) as part
+of their CYGWIN project.  For more information about the project, see
+http://www.cygwin.com/.
 
 Cygnus originally ported bash-1.14.7, and that port was part of their
 early GNU-Win32 (the original name) releases.  Cygnus has also done a
-port of bash-2.05 to the CYGWIN environment, and it is available as
-part of their current release.
+port of bash-2.05b to the CYGWIN environment, and it is available as
+part of their current release.  Bash-3.0 is currently being tested and
+should be available soon.
 
 Bash-2.05b and later versions should require no local Cygnus changes to
 build and run under CYGWIN.
@@ -1781,7 +1780,6 @@ These are features that may or may not appear in a future version of bash.
 
 breaking some of the shell functionality into embeddable libraries
 a module system like zsh's, using dynamic loading like builtins
-date-stamped command history
 a bash programmer's guide with a chapter on creating loadable builtins
 a better loadable interface to perl with access to the shell builtins and
        variables (contributions gratefully accepted)
index 16402ce18a531705b5e039dca43b85c5a5a77963..8f797f9cf7a4fb8b5c6e63ed72d7a111f62dfd12 100644 (file)
@@ -1,6 +1,6 @@
 Newsgroups: comp.unix.shell,comp.unix.questions,comp.answers,news.answers
 From: chet@po.cwru.edu (Chet Ramey)
-Subject: [gnu.bash.bug] BASH Frequently-Asked Questions (FAQ version 3.27)
+Subject: [gnu.bash.bug] BASH Frequently-Asked Questions (FAQ version 3.29)
 Organization: Case Western Reserve University
 Summary: A's to Q's about BASH, the Bourne-Again SHell
 Reply-To: chet@po.cwru.edu
@@ -10,13 +10,13 @@ Approved: news-answers-request@MIT.EDU
 Archive-name: unix-faq/shell/bash
 Posting-Frequency: monthly
 Submitted-By: chet@po.cwru.edu (Chet Ramey)
-Last-Modified: Tue Aug  3 09:54:24 EDT 2004
-FAQ-Version: 3.27
+Last-Modified: Mon Sep 13 09:03:53 EDT 2004
+FAQ-Version: 3.29
 Bash-Version: 3.0
 URL: ftp://ftp.cwru.edu/pub/bash/FAQ
 Maintainer: chet@po.cwru.edu (Chet Ramey)
 
-This is the Bash FAQ, version 3.27, for Bash version 3.0.
+This is the Bash FAQ, version 3.29, for Bash version 3.0.
 
 This document contains a set of frequently-asked questions concerning
 Bash, the GNU Bourne-Again Shell.  Bash is a freely-available command
@@ -199,16 +199,15 @@ earlier Minix versions yet.
 
 Bash has been ported to versions of Windows implementing the Win32
 programming interface.  This includes Windows 95 and Windows NT.
-The port was done by Cygnus Solutions as part of their CYGWIN
-project.  For more information about the project, look at the URLs
-
-http://www.cygwin.com/
-http://sourceware.cygnus.com/cygwin
+The port was done by Cygnus Solutions (now part of Red Hat) as part
+of their CYGWIN project.  For more information about the project, see
+http://www.cygwin.com/.
 
 Cygnus originally ported bash-1.14.7, and that port was part of their
 early GNU-Win32 (the original name) releases.  Cygnus has also done a
-port of bash-2.05 to the CYGWIN environment, and it is available as
-part of their current release.
+port of bash-2.05b to the CYGWIN environment, and it is available as
+part of their current release.  Bash-3.0 is currently being tested and
+should be available soon.
 
 Bash-2.05b and later versions should require no local Cygnus changes to
 build and run under CYGWIN.
@@ -1781,7 +1780,6 @@ These are features that may or may not appear in a future version of bash.
 
 breaking some of the shell functionality into embeddable libraries
 a module system like zsh's, using dynamic loading like builtins
-date-stamped command history
 a bash programmer's guide with a chapter on creating loadable builtins
 a better loadable interface to perl with access to the shell builtins and
        variables (contributions gratefully accepted)
index ed93f3c5919d6428b9e632670656739a296b5ddb..0a9c3cf130595ef812f84c36fe3744bf4e2d80dc 100644 (file)
@@ -1,8 +1,8 @@
 Archive-name: unix-faq/shell/bash
 Posting-Frequency: monthly
 Submitted-By: chet@po.cwru.edu (Chet Ramey)
-Last-Modified: Tue Aug  3 09:54:24 EDT 2004
-FAQ-Version: 3.27
+Last-Modified: Mon Sep 13 09:03:53 EDT 2004
+FAQ-Version: 3.29
 Bash-Version: 3.0
 URL: ftp://ftp.cwru.edu/pub/bash/FAQ
 Maintainer: chet@po.cwru.edu (Chet Ramey)
diff --git a/expr.c b/expr.c
index a45e6a7cd7f77b6f2285670c1166da70a9e9c24a..18beccb2426c20a0d0eeddb27125512c01bef90a 100644 (file)
--- a/expr.c
+++ b/expr.c
@@ -769,7 +769,7 @@ exppower ()
   while (curtok == POWER)
     {
       readtok ();
-      val2 = exp1 ();
+      val2 = exppower ();      /* exponentiation is right-associative */
       if (val2 == 0)
        return (1);
       if (val2 < 0)
index 53e2fe2c03866bde5e85ea7789840310da9e5717..90ec2f805ab83bcf933d22e71fb554142eac8c1f 100644 (file)
@@ -32,7 +32,7 @@ strnlen (s, maxlen)
   register const char *e;
   size_t n;
 
-  for (e = s,n = 0; *e && n < maxlen; e++, n++)
+  for (e = s, n = 0; *e && n < maxlen; e++, n++)
     ;
   return n;
 }
index d1a9c30a00ce104be9752d133ea5b5bbc000acd8..7d4d930927132ac8eaf609a70032869f832321d9 100644 (file)
@@ -1419,11 +1419,11 @@ initialize_dynamic_variables ()
   v = init_dynamic_array_var ("GROUPS", get_groupset, null_array_assign, att_noassign);
 
 #  if defined (DEBUGGER)
-  v = init_dynamic_array_var ("BASH_ARGC", get_self, null_array_assign, att_noassign);
-  v = init_dynamic_array_var ("BASH_ARGV", get_self, null_array_assign, att_noassign);
+  v = init_dynamic_array_var ("BASH_ARGC", get_self, null_array_assign, att_noassign|att_nounset);
+  v = init_dynamic_array_var ("BASH_ARGV", get_self, null_array_assign, att_noassign|att_nounset);
 #  endif /* DEBUGGER */
-  v = init_dynamic_array_var ("BASH_SOURCE", get_self, null_array_assign, att_noassign);
-  v = init_dynamic_array_var ("BASH_LINENO", get_self, null_array_assign, att_noassign);
+  v = init_dynamic_array_var ("BASH_SOURCE", get_self, null_array_assign, att_noassign|att_nounset);
+  v = init_dynamic_array_var ("BASH_LINENO", get_self, null_array_assign, att_noassign|att_nounset);
 #endif
 
   v = init_funcname_var ();