commit bash-20040914 snapshot

This commit is contained in:
Chet Ramey
2011-12-03 13:36:28 -05:00
parent 301e21427e
commit b66cc81633
13 changed files with 135 additions and 132 deletions
+9
View 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
+84 -84
View File
@@ -15,96 +15,96 @@
'configure.in'
],
{
'AC_PROG_GCC_TRADITIONAL' => 1,
'AC_PROG_AWK' => 1,
'AC_INIT' => 1,
'AC_FUNC_REALLOC' => 1,
'AC_FUNC_UTIME_NULL' => 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,
'AM_AUTOMAKE_VERSION' => 1,
'AC_STRUCT_TM' => 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_FUNC_MBRTOWC' => 1,
'AC_LIBSOURCE' => 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_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_FORK' => 1,
'AC_CONFIG_AUX_DIR' => 1,
'AC_SUBST' => 1,
'AC_FUNC_MEMCMP' => 1,
'AC_FUNC_WAIT3' => 1,
'AC_FUNC_SETVBUF_REVERSED' => 1,
'AC_PROG_CPP' => 1,
'AC_FUNC_GETGROUPS' => 1,
'AC_CANONICAL_HOST' => 1,
'AC_FUNC_CLOSEDIR_VOID' => 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,
'AM_MAINTAINER_MODE' => 1,
'AC_CHECK_LIB' => 1,
'AC_TYPE_SIZE_T' => 1,
'AC_STRUCT_TIMEZONE' => 1,
'AC_FUNC_MKTIME' => 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_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,
'AH_OUTPUT' => 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_CONFIG_AUX_DIR' => 1,
'AC_FUNC_MALLOC' => 1,
'AC_DECL_SYS_SIGLIST' => 1,
'AC_C_CONST' => 1,
'AC_FUNC_SETPGRP' => 1,
'AC_CANONICAL_SYSTEM' => 1,
'AC_C_VOLATILE' => 1,
'AC_FUNC_FSEEKO' => 1,
'AC_FUNC_MBRTOWC' => 1,
'AC_STRUCT_TM' => 1,
'AC_FUNC_STRCOLL' => 1,
'AC_REPLACE_FNMATCH' => 1,
'AC_DEFINE_TRACE_LITERAL' => 1,
'AC_HEADER_TIME' => 1,
'AC_PROG_CXX' => 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,
'AC_FUNC_OBSTACK' => 1
'AM_CONDITIONAL' => 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_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_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_C_INLINE' => 1,
'AM_INIT_AUTOMAKE' => 1,
'AC_TYPE_UID_T' => 1,
'AC_PROG_YACC' => 1,
'AC_FUNC_STRNLEN' => 1,
'AC_PROG_INSTALL' => 1,
'AC_FUNC_WAIT3' => 1,
'AC_CHECK_FUNCS' => 1,
'AM_MAINTAINER_MODE' => 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,
'm4_pattern_forbid' => 1
}
], 'Request' )
);
+1 -1
View 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
+1 -1
View 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
+1 -1
View 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
+1 -1
View 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 -12
View 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)
+10 -12
View 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)
+10 -12
View 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)
+2 -2
View 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)
+1 -1
View File
@@ -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)
+1 -1
View 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;
}
+4 -4
View 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 ();