mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-06-29 00:19:51 +02:00
commit bash-20090618 snapshot
This commit is contained in:
@@ -8156,3 +8156,17 @@ xmalloc.c
|
||||
(and their sh_ counterparts) are called
|
||||
- error messages consolidated into a single function (allocerr/
|
||||
sh_allocerr) to avoid string duplication
|
||||
|
||||
6/16
|
||||
----
|
||||
variables.c
|
||||
- changes to allow variables.c to be compiled if ALIAS is not defined.
|
||||
Bug and fix from John Gatewood Ham <uraphalinuxserver@gmail.com>
|
||||
|
||||
lib/sh/getcwd.c
|
||||
- fix so systems defining BROKEN_DIRENT_D_INO have the necessary
|
||||
defines. Fix from Jay Krell <jay.krell@cornell.edu>
|
||||
|
||||
configure.in
|
||||
- add -D_ALL_SOURCE to interix CFLAGS for struct timezone definition.
|
||||
Bug and fix from John Gatewood Ham <uraphalinuxserver@gmail.com>
|
||||
|
||||
@@ -30300,7 +30300,7 @@ _ACEOF
|
||||
*qnx*) LOCAL_CFLAGS="-Dqnx -F -3s" LOCAL_LDFLAGS="-3s" LOCAL_LIBS="-lunix -lncurses" ;;
|
||||
powerux*) LOCAL_LIBS="-lgen" ;;
|
||||
cygwin*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
|
||||
opennt*|interix*) LOCAL_CFLAGS="-DNO_MAIN_ENV_ARG -DBROKEN_DIRENT_D_INO -D_POSIX_SOURCE" ;;
|
||||
opennt*|interix*) LOCAL_CFLAGS="-DNO_MAIN_ENV_ARG -DBROKEN_DIRENT_D_INO -D_POSIX_SOURCE -D_ALL_SOURCE" ;;
|
||||
esac
|
||||
|
||||
case "${host_os}-${CC}" in
|
||||
|
||||
+11
-11
@@ -15,25 +15,25 @@
|
||||
'configure.in'
|
||||
],
|
||||
{
|
||||
'AM_PROG_F77_C_O' => 1,
|
||||
'_LT_AC_TAGCONFIG' => 1,
|
||||
'm4_pattern_forbid' => 1,
|
||||
'AM_PROG_F77_C_O' => 1,
|
||||
'AC_INIT' => 1,
|
||||
'AC_CANONICAL_TARGET' => 1,
|
||||
'm4_pattern_forbid' => 1,
|
||||
'_AM_COND_IF' => 1,
|
||||
'AC_CONFIG_LIBOBJ_DIR' => 1,
|
||||
'AC_CANONICAL_TARGET' => 1,
|
||||
'AC_SUBST' => 1,
|
||||
'AC_CANONICAL_HOST' => 1,
|
||||
'AC_CONFIG_LIBOBJ_DIR' => 1,
|
||||
'AC_FC_SRCEXT' => 1,
|
||||
'AC_CANONICAL_HOST' => 1,
|
||||
'AC_PROG_LIBTOOL' => 1,
|
||||
'AM_INIT_AUTOMAKE' => 1,
|
||||
'AC_CONFIG_SUBDIRS' => 1,
|
||||
'AM_AUTOMAKE_VERSION' => 1,
|
||||
'LT_CONFIG_LTDL_DIR' => 1,
|
||||
'AC_CONFIG_LINKS' => 1,
|
||||
'AC_REQUIRE_AUX_FILE' => 1,
|
||||
'LT_SUPPORTED_TAG' => 1,
|
||||
'AC_CONFIG_LINKS' => 1,
|
||||
'm4_sinclude' => 1,
|
||||
'LT_SUPPORTED_TAG' => 1,
|
||||
'AM_MAINTAINER_MODE' => 1,
|
||||
'AM_GNU_GETTEXT_INTL_SUBDIR' => 1,
|
||||
'_m4_warn' => 1,
|
||||
@@ -49,13 +49,13 @@
|
||||
'AC_CANONICAL_BUILD' => 1,
|
||||
'AC_FC_FREEFORM' => 1,
|
||||
'AH_OUTPUT' => 1,
|
||||
'AC_CONFIG_AUX_DIR' => 1,
|
||||
'_AM_SUBST_NOTMAKE' => 1,
|
||||
'AM_PROG_CC_C_O' => 1,
|
||||
'm4_pattern_allow' => 1,
|
||||
'AC_CONFIG_AUX_DIR' => 1,
|
||||
'sinclude' => 1,
|
||||
'AM_CONDITIONAL' => 1,
|
||||
'm4_pattern_allow' => 1,
|
||||
'AM_PROG_CC_C_O' => 1,
|
||||
'AC_CANONICAL_SYSTEM' => 1,
|
||||
'AM_CONDITIONAL' => 1,
|
||||
'AC_CONFIG_HEADERS' => 1,
|
||||
'AC_DEFINE_TRACE_LITERAL' => 1,
|
||||
'm4_include' => 1,
|
||||
|
||||
@@ -30300,7 +30300,7 @@ _ACEOF
|
||||
*qnx*) LOCAL_CFLAGS="-Dqnx -F -3s" LOCAL_LDFLAGS="-3s" LOCAL_LIBS="-lunix -lncurses" ;;
|
||||
powerux*) LOCAL_LIBS="-lgen" ;;
|
||||
cygwin*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
|
||||
opennt*|interix*) LOCAL_CFLAGS="-DNO_MAIN_ENV_ARG -DBROKEN_DIRENT_D_INO -D_POSIX_SOURCE" ;;
|
||||
opennt*|interix*) LOCAL_CFLAGS="-DNO_MAIN_ENV_ARG -DBROKEN_DIRENT_D_INO -D_POSIX_SOURCE -D_ALL_SOURCE" ;;
|
||||
esac
|
||||
|
||||
case "${host_os}-${CC}" in
|
||||
|
||||
+1
-1
@@ -1026,7 +1026,7 @@ linux*) LOCAL_LDFLAGS=-rdynamic # allow dynamic loading
|
||||
*qnx*) LOCAL_CFLAGS="-Dqnx -F -3s" LOCAL_LDFLAGS="-3s" LOCAL_LIBS="-lunix -lncurses" ;;
|
||||
powerux*) LOCAL_LIBS="-lgen" ;;
|
||||
cygwin*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
|
||||
opennt*|interix*) LOCAL_CFLAGS="-DNO_MAIN_ENV_ARG -DBROKEN_DIRENT_D_INO -D_POSIX_SOURCE" ;;
|
||||
opennt*|interix*) LOCAL_CFLAGS="-DNO_MAIN_ENV_ARG -DBROKEN_DIRENT_D_INO -D_POSIX_SOURCE -D_ALL_SOURCE" ;;
|
||||
esac
|
||||
|
||||
dnl Stanza for OS/compiler pair-specific flags
|
||||
|
||||
+7
-5
@@ -4626,10 +4626,12 @@ SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS
|
||||
this option off causes the effective user and group ids
|
||||
to be set to the real user and group ids.
|
||||
--tt Exit after reading and executing one command.
|
||||
--uu Treat unset variables as an error when performing param-
|
||||
eter expansion. If expansion is attempted on an unset
|
||||
variable, the shell prints an error message, and, if not
|
||||
interactive, exits with a non-zero status.
|
||||
--uu Treat unset variables and parameters other than the spe-
|
||||
cial parameters "@" and "*" as an error when performing
|
||||
parameter expansion. If expansion is attempted on an
|
||||
unset variable or parameter, the shell prints an error
|
||||
message, and, if not interactive, exits with a non-zero
|
||||
status.
|
||||
--vv Print shell input lines as they are read.
|
||||
--xx After expanding each _s_i_m_p_l_e _c_o_m_m_a_n_d, ffoorr command, ccaassee
|
||||
command, sseelleecctt command, or arithmetic ffoorr command, dis-
|
||||
@@ -5236,4 +5238,4 @@ BBUUGGSS
|
||||
|
||||
|
||||
|
||||
GNU Bash-4.0 2009 May 26 BASH(1)
|
||||
GNU Bash-4.0 2009 June 17 BASH(1)
|
||||
|
||||
+5
-4
@@ -5,12 +5,12 @@
|
||||
.\" Case Western Reserve University
|
||||
.\" chet@po.cwru.edu
|
||||
.\"
|
||||
.\" Last Change: Tue May 26 17:03:43 EDT 2009
|
||||
.\" Last Change: Wed Jun 17 08:51:11 EDT 2009
|
||||
.\"
|
||||
.\" bash_builtins, strip all but Built-Ins section
|
||||
.if \n(zZ=1 .ig zZ
|
||||
.if \n(zY=1 .ig zY
|
||||
.TH BASH 1 "2009 May 26" "GNU Bash-4.0"
|
||||
.TH BASH 1 "2009 June 17" "GNU Bash-4.0"
|
||||
.\"
|
||||
.\" There's some problem with having a `@'
|
||||
.\" in a tagged paragraph with the BSD man macros.
|
||||
@@ -8273,9 +8273,10 @@ and group ids to be set to the real user and group ids.
|
||||
Exit after reading and executing one command.
|
||||
.TP 8
|
||||
.B \-u
|
||||
Treat unset variables as an error when performing
|
||||
Treat unset variables and parameters other than the special
|
||||
parameters "@" and "*" as an error when performing
|
||||
parameter expansion. If expansion is attempted on an
|
||||
unset variable, the shell prints an error message, and,
|
||||
unset variable or parameter, the shell prints an error message, and,
|
||||
if not interactive, exits with a non-zero status.
|
||||
.TP 8
|
||||
.B \-v
|
||||
|
||||
+6
-5
@@ -3,7 +3,7 @@
|
||||
</HEAD>
|
||||
<BODY><TABLE WIDTH=100%>
|
||||
<TR>
|
||||
<TH ALIGN=LEFT width=33%>BASH(1)<TH ALIGN=CENTER width=33%>2009 May 26<TH ALIGN=RIGHT width=33%>BASH(1)
|
||||
<TH ALIGN=LEFT width=33%>BASH(1)<TH ALIGN=CENTER width=33%>2009 June 17<TH ALIGN=RIGHT width=33%>BASH(1)
|
||||
</TR>
|
||||
</TABLE>
|
||||
<BR><A HREF="#index">Index</A>
|
||||
@@ -10605,9 +10605,10 @@ Exit after reading and executing one command.
|
||||
<DT><B>-u</B>
|
||||
|
||||
<DD>
|
||||
Treat unset variables as an error when performing
|
||||
Treat unset variables and parameters other than the special
|
||||
parameters "@" and "*" as an error when performing
|
||||
parameter expansion. If expansion is attempted on an
|
||||
unset variable, the shell prints an error message, and,
|
||||
unset variable or parameter, the shell prints an error message, and,
|
||||
if not interactive, exits with a non-zero status.
|
||||
<DT><B>-v</B>
|
||||
|
||||
@@ -12092,7 +12093,7 @@ There may be only one active coprocess at a time.
|
||||
<HR>
|
||||
<TABLE WIDTH=100%>
|
||||
<TR>
|
||||
<TH ALIGN=LEFT width=33%>GNU Bash-4.0<TH ALIGN=CENTER width=33%>2009 May 26<TH ALIGN=RIGHT width=33%>BASH(1)
|
||||
<TH ALIGN=LEFT width=33%>GNU Bash-4.0<TH ALIGN=CENTER width=33%>2009 June 17<TH ALIGN=RIGHT width=33%>BASH(1)
|
||||
</TR>
|
||||
</TABLE>
|
||||
<HR>
|
||||
@@ -12198,6 +12199,6 @@ There may be only one active coprocess at a time.
|
||||
</DL>
|
||||
<HR>
|
||||
This document was created by man2html from bash.1.<BR>
|
||||
Time: 08 June 2009 08:33:25 EDT
|
||||
Time: 17 June 2009 08:51:37 EDT
|
||||
</BODY>
|
||||
</HTML>
|
||||
|
||||
Binary file not shown.
+457
-454
File diff suppressed because it is too large
Load Diff
Binary file not shown.
+7
-6
@@ -1,6 +1,6 @@
|
||||
<HTML>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<!-- Created on June, 8 2009 by texi2html 1.64 -->
|
||||
<!-- Created on June, 17 2009 by texi2html 1.64 -->
|
||||
<!--
|
||||
Written by: Lionel Cons <Lionel.Cons@cern.ch> (original author)
|
||||
Karl Berry <karl@freefriends.org>
|
||||
@@ -33,10 +33,10 @@ Send bugs and suggestions to <texi2html@mathematik.uni-kl.de>
|
||||
<H1>Bash Reference Manual</H1></P><P>
|
||||
|
||||
This text is a brief description of the features that are present in
|
||||
the Bash shell (version 4.0, 5 June 2009).
|
||||
the Bash shell (version 4.0, 17 June 2009).
|
||||
</P><P>
|
||||
|
||||
This is Edition 4.0, last updated 5 June 2009,
|
||||
This is Edition 4.0, last updated 17 June 2009,
|
||||
of <CITE>The GNU Bash Reference Manual</CITE>,
|
||||
for <CODE>Bash</CODE>, Version 4.0.
|
||||
</P><P>
|
||||
@@ -5355,7 +5355,8 @@ and group ids to be set to the real user and group ids.
|
||||
<P>
|
||||
|
||||
<DT><CODE>-u</CODE>
|
||||
<DD>Treat unset variables as an error when performing parameter expansion.
|
||||
<DD>Treat unset variables and parameters other than the special parameters
|
||||
<SAMP>`@'</SAMP> or <SAMP>`*'</SAMP> as an error when performing parameter expansion.
|
||||
An error message will be written to the standard error, and a non-interactive
|
||||
shell will exit.
|
||||
<P>
|
||||
@@ -15879,7 +15880,7 @@ to permit their use in free software.
|
||||
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bashref.html#SEC_About"> ? </A>]</TD>
|
||||
</TR></TABLE>
|
||||
<H1>About this document</H1>
|
||||
This document was generated by <I>Chet Ramey</I> on <I>June, 8 2009</I>
|
||||
This document was generated by <I>Chet Ramey</I> on <I>June, 17 2009</I>
|
||||
using <A HREF="http://www.mathematik.uni-kl.de/~obachman/Texi2html
|
||||
"><I>texi2html</I></A>
|
||||
<P></P>
|
||||
@@ -16041,7 +16042,7 @@ the following structure:
|
||||
<BR>
|
||||
<FONT SIZE="-1">
|
||||
This document was generated
|
||||
by <I>Chet Ramey</I> on <I>June, 8 2009</I>
|
||||
by <I>Chet Ramey</I> on <I>June, 17 2009</I>
|
||||
using <A HREF="http://www.mathematik.uni-kl.de/~obachman/Texi2html
|
||||
"><I>texi2html</I></A>
|
||||
|
||||
|
||||
+133
-132
@@ -2,9 +2,9 @@ This is bashref.info, produced by makeinfo version 4.13 from
|
||||
/Users/chet/src/bash/src/doc/bashref.texi.
|
||||
|
||||
This text is a brief description of the features that are present in
|
||||
the Bash shell (version 4.0, 5 June 2009).
|
||||
the Bash shell (version 4.0, 17 June 2009).
|
||||
|
||||
This is Edition 4.0, last updated 5 June 2009, of `The GNU Bash
|
||||
This is Edition 4.0, last updated 17 June 2009, of `The GNU Bash
|
||||
Reference Manual', for `Bash', Version 4.0.
|
||||
|
||||
Copyright (C) 1988-2009 Free Software Foundation, Inc.
|
||||
@@ -38,9 +38,9 @@ Bash Features
|
||||
*************
|
||||
|
||||
This text is a brief description of the features that are present in
|
||||
the Bash shell (version 4.0, 5 June 2009).
|
||||
the Bash shell (version 4.0, 17 June 2009).
|
||||
|
||||
This is Edition 4.0, last updated 5 June 2009, of `The GNU Bash
|
||||
This is Edition 4.0, last updated 17 June 2009, of `The GNU Bash
|
||||
Reference Manual', for `Bash', Version 4.0.
|
||||
|
||||
Bash contains features that appear in other popular shells, and some
|
||||
@@ -3590,7 +3590,8 @@ parameters, or to display the names and values of shell variables.
|
||||
Exit after reading and executing one command.
|
||||
|
||||
`-u'
|
||||
Treat unset variables as an error when performing parameter
|
||||
Treat unset variables and parameters other than the special
|
||||
parameters `@' or `*' as an error when performing parameter
|
||||
expansion. An error message will be written to the standard
|
||||
error, and a non-interactive shell will exit.
|
||||
|
||||
@@ -10076,132 +10077,132 @@ D.5 Concept Index
|
||||
|
||||
|
||||
Tag Table:
|
||||
Node: Top1336
|
||||
Node: Introduction3165
|
||||
Node: What is Bash?3393
|
||||
Node: What is a shell?4506
|
||||
Node: Definitions7046
|
||||
Node: Basic Shell Features9964
|
||||
Node: Shell Syntax11183
|
||||
Node: Shell Operation12213
|
||||
Node: Quoting13507
|
||||
Node: Escape Character14810
|
||||
Node: Single Quotes15295
|
||||
Node: Double Quotes15643
|
||||
Node: ANSI-C Quoting16768
|
||||
Node: Locale Translation17724
|
||||
Node: Comments18620
|
||||
Node: Shell Commands19238
|
||||
Node: Simple Commands20062
|
||||
Node: Pipelines20693
|
||||
Node: Lists22949
|
||||
Node: Compound Commands24678
|
||||
Node: Looping Constructs25482
|
||||
Node: Conditional Constructs27937
|
||||
Node: Command Grouping35943
|
||||
Node: Coprocesses37422
|
||||
Node: Shell Functions39066
|
||||
Node: Shell Parameters43620
|
||||
Node: Positional Parameters46036
|
||||
Node: Special Parameters46936
|
||||
Node: Shell Expansions49900
|
||||
Node: Brace Expansion51825
|
||||
Node: Tilde Expansion54580
|
||||
Node: Shell Parameter Expansion56931
|
||||
Node: Command Substitution65829
|
||||
Node: Arithmetic Expansion67162
|
||||
Node: Process Substitution68012
|
||||
Node: Word Splitting69062
|
||||
Node: Filename Expansion70685
|
||||
Node: Pattern Matching72824
|
||||
Node: Quote Removal76463
|
||||
Node: Redirections76758
|
||||
Node: Executing Commands84906
|
||||
Node: Simple Command Expansion85576
|
||||
Node: Command Search and Execution87506
|
||||
Node: Command Execution Environment89843
|
||||
Node: Environment92829
|
||||
Node: Exit Status94489
|
||||
Node: Signals96110
|
||||
Node: Shell Scripts98078
|
||||
Node: Shell Builtin Commands100596
|
||||
Node: Bourne Shell Builtins102624
|
||||
Node: Bash Builtins120000
|
||||
Node: Modifying Shell Behavior144299
|
||||
Node: The Set Builtin144644
|
||||
Node: The Shopt Builtin154086
|
||||
Node: Special Builtins164948
|
||||
Node: Shell Variables165927
|
||||
Node: Bourne Shell Variables166367
|
||||
Node: Bash Variables168348
|
||||
Node: Bash Features190687
|
||||
Node: Invoking Bash191570
|
||||
Node: Bash Startup Files197379
|
||||
Node: Interactive Shells202348
|
||||
Node: What is an Interactive Shell?202758
|
||||
Node: Is this Shell Interactive?203407
|
||||
Node: Interactive Shell Behavior204222
|
||||
Node: Bash Conditional Expressions207502
|
||||
Node: Shell Arithmetic211027
|
||||
Node: Aliases213773
|
||||
Node: Arrays216345
|
||||
Node: The Directory Stack220303
|
||||
Node: Directory Stack Builtins221017
|
||||
Node: Printing a Prompt223909
|
||||
Node: The Restricted Shell226661
|
||||
Node: Bash POSIX Mode228493
|
||||
Node: Job Control236346
|
||||
Node: Job Control Basics236806
|
||||
Node: Job Control Builtins241523
|
||||
Node: Job Control Variables245887
|
||||
Node: Command Line Editing247045
|
||||
Node: Introduction and Notation248612
|
||||
Node: Readline Interaction250234
|
||||
Node: Readline Bare Essentials251425
|
||||
Node: Readline Movement Commands253214
|
||||
Node: Readline Killing Commands254179
|
||||
Node: Readline Arguments256099
|
||||
Node: Searching257143
|
||||
Node: Readline Init File259329
|
||||
Node: Readline Init File Syntax260476
|
||||
Node: Conditional Init Constructs273710
|
||||
Node: Sample Init File276243
|
||||
Node: Bindable Readline Commands279360
|
||||
Node: Commands For Moving280567
|
||||
Node: Commands For History281711
|
||||
Node: Commands For Text284866
|
||||
Node: Commands For Killing287539
|
||||
Node: Numeric Arguments289990
|
||||
Node: Commands For Completion291129
|
||||
Node: Keyboard Macros294896
|
||||
Node: Miscellaneous Commands295467
|
||||
Node: Readline vi Mode300778
|
||||
Node: Programmable Completion301692
|
||||
Node: Programmable Completion Builtins307525
|
||||
Node: Using History Interactively315951
|
||||
Node: Bash History Facilities316635
|
||||
Node: Bash History Builtins319549
|
||||
Node: History Interaction323406
|
||||
Node: Event Designators326111
|
||||
Node: Word Designators327126
|
||||
Node: Modifiers328765
|
||||
Node: Installing Bash330169
|
||||
Node: Basic Installation331306
|
||||
Node: Compilers and Options333998
|
||||
Node: Compiling For Multiple Architectures334739
|
||||
Node: Installation Names336403
|
||||
Node: Specifying the System Type337221
|
||||
Node: Sharing Defaults337937
|
||||
Node: Operation Controls338610
|
||||
Node: Optional Features339568
|
||||
Node: Reporting Bugs348970
|
||||
Node: Major Differences From The Bourne Shell350171
|
||||
Node: GNU Free Documentation License366858
|
||||
Node: Indexes392054
|
||||
Node: Builtin Index392508
|
||||
Node: Reserved Word Index399335
|
||||
Node: Variable Index401783
|
||||
Node: Function Index413589
|
||||
Node: Concept Index420321
|
||||
Node: Top1338
|
||||
Node: Introduction3169
|
||||
Node: What is Bash?3397
|
||||
Node: What is a shell?4510
|
||||
Node: Definitions7050
|
||||
Node: Basic Shell Features9968
|
||||
Node: Shell Syntax11187
|
||||
Node: Shell Operation12217
|
||||
Node: Quoting13511
|
||||
Node: Escape Character14814
|
||||
Node: Single Quotes15299
|
||||
Node: Double Quotes15647
|
||||
Node: ANSI-C Quoting16772
|
||||
Node: Locale Translation17728
|
||||
Node: Comments18624
|
||||
Node: Shell Commands19242
|
||||
Node: Simple Commands20066
|
||||
Node: Pipelines20697
|
||||
Node: Lists22953
|
||||
Node: Compound Commands24682
|
||||
Node: Looping Constructs25486
|
||||
Node: Conditional Constructs27941
|
||||
Node: Command Grouping35947
|
||||
Node: Coprocesses37426
|
||||
Node: Shell Functions39070
|
||||
Node: Shell Parameters43624
|
||||
Node: Positional Parameters46040
|
||||
Node: Special Parameters46940
|
||||
Node: Shell Expansions49904
|
||||
Node: Brace Expansion51829
|
||||
Node: Tilde Expansion54584
|
||||
Node: Shell Parameter Expansion56935
|
||||
Node: Command Substitution65833
|
||||
Node: Arithmetic Expansion67166
|
||||
Node: Process Substitution68016
|
||||
Node: Word Splitting69066
|
||||
Node: Filename Expansion70689
|
||||
Node: Pattern Matching72828
|
||||
Node: Quote Removal76467
|
||||
Node: Redirections76762
|
||||
Node: Executing Commands84910
|
||||
Node: Simple Command Expansion85580
|
||||
Node: Command Search and Execution87510
|
||||
Node: Command Execution Environment89847
|
||||
Node: Environment92833
|
||||
Node: Exit Status94493
|
||||
Node: Signals96114
|
||||
Node: Shell Scripts98082
|
||||
Node: Shell Builtin Commands100600
|
||||
Node: Bourne Shell Builtins102628
|
||||
Node: Bash Builtins120004
|
||||
Node: Modifying Shell Behavior144303
|
||||
Node: The Set Builtin144648
|
||||
Node: The Shopt Builtin154160
|
||||
Node: Special Builtins165022
|
||||
Node: Shell Variables166001
|
||||
Node: Bourne Shell Variables166441
|
||||
Node: Bash Variables168422
|
||||
Node: Bash Features190761
|
||||
Node: Invoking Bash191644
|
||||
Node: Bash Startup Files197453
|
||||
Node: Interactive Shells202422
|
||||
Node: What is an Interactive Shell?202832
|
||||
Node: Is this Shell Interactive?203481
|
||||
Node: Interactive Shell Behavior204296
|
||||
Node: Bash Conditional Expressions207576
|
||||
Node: Shell Arithmetic211101
|
||||
Node: Aliases213847
|
||||
Node: Arrays216419
|
||||
Node: The Directory Stack220377
|
||||
Node: Directory Stack Builtins221091
|
||||
Node: Printing a Prompt223983
|
||||
Node: The Restricted Shell226735
|
||||
Node: Bash POSIX Mode228567
|
||||
Node: Job Control236420
|
||||
Node: Job Control Basics236880
|
||||
Node: Job Control Builtins241597
|
||||
Node: Job Control Variables245961
|
||||
Node: Command Line Editing247119
|
||||
Node: Introduction and Notation248686
|
||||
Node: Readline Interaction250308
|
||||
Node: Readline Bare Essentials251499
|
||||
Node: Readline Movement Commands253288
|
||||
Node: Readline Killing Commands254253
|
||||
Node: Readline Arguments256173
|
||||
Node: Searching257217
|
||||
Node: Readline Init File259403
|
||||
Node: Readline Init File Syntax260550
|
||||
Node: Conditional Init Constructs273784
|
||||
Node: Sample Init File276317
|
||||
Node: Bindable Readline Commands279434
|
||||
Node: Commands For Moving280641
|
||||
Node: Commands For History281785
|
||||
Node: Commands For Text284940
|
||||
Node: Commands For Killing287613
|
||||
Node: Numeric Arguments290064
|
||||
Node: Commands For Completion291203
|
||||
Node: Keyboard Macros294970
|
||||
Node: Miscellaneous Commands295541
|
||||
Node: Readline vi Mode300852
|
||||
Node: Programmable Completion301766
|
||||
Node: Programmable Completion Builtins307599
|
||||
Node: Using History Interactively316025
|
||||
Node: Bash History Facilities316709
|
||||
Node: Bash History Builtins319623
|
||||
Node: History Interaction323480
|
||||
Node: Event Designators326185
|
||||
Node: Word Designators327200
|
||||
Node: Modifiers328839
|
||||
Node: Installing Bash330243
|
||||
Node: Basic Installation331380
|
||||
Node: Compilers and Options334072
|
||||
Node: Compiling For Multiple Architectures334813
|
||||
Node: Installation Names336477
|
||||
Node: Specifying the System Type337295
|
||||
Node: Sharing Defaults338011
|
||||
Node: Operation Controls338684
|
||||
Node: Optional Features339642
|
||||
Node: Reporting Bugs349044
|
||||
Node: Major Differences From The Bourne Shell350245
|
||||
Node: GNU Free Documentation License366932
|
||||
Node: Indexes392128
|
||||
Node: Builtin Index392582
|
||||
Node: Reserved Word Index399409
|
||||
Node: Variable Index401857
|
||||
Node: Function Index413663
|
||||
Node: Concept Index420395
|
||||
|
||||
End Tag Table
|
||||
|
||||
+10
-10
@@ -1,4 +1,4 @@
|
||||
This is TeX, Version 3.141592 (Web2C 7.5.4) (format=tex 2008.12.11) 8 JUN 2009 08:33
|
||||
This is TeX, Version 3.141592 (Web2C 7.5.4) (format=tex 2008.12.11) 17 JUN 2009 08:51
|
||||
**/Users/chet/src/bash/src/doc/bashref.texi
|
||||
(/Users/chet/src/bash/src/doc/bashref.texi (./texinfo.tex
|
||||
Loading texinfo [version 2009-01-18.17]:
|
||||
@@ -220,7 +220,7 @@ pt@texttt ] [-t @textttsl time-
|
||||
.etc.
|
||||
|
||||
[47] [48] [49] [50] [51] [52] [53] [54] [55]
|
||||
Underfull \hbox (badness 2573) in paragraph at lines 4389--4393
|
||||
Underfull \hbox (badness 2573) in paragraph at lines 4390--4394
|
||||
[]@textrm Error trac-ing is en-abled: com-mand sub-sti-tu-tion, shell
|
||||
|
||||
@hbox(7.60416+2.12917)x433.62, glue set 2.95305
|
||||
@@ -237,7 +237,7 @@ Underfull \hbox (badness 2573) in paragraph at lines 4389--4393
|
||||
|
||||
[56] [57] [58] Chapter 5 [59] [60] [61] [62] [63] [64] [65] [66] [67] [68]
|
||||
Chapter 6 [69] [70]
|
||||
Overfull \hbox (51.96864pt too wide) in paragraph at lines 5232--5232
|
||||
Overfull \hbox (51.96864pt too wide) in paragraph at lines 5233--5233
|
||||
[]@texttt bash [long-opt] [-ir] [-abefhkmnptuvxdBCDHP] [-o @textttsl op-tion@t
|
||||
exttt ] [-O @textttsl shopt_option@texttt ] [@textttsl ar-
|
||||
|
||||
@@ -250,7 +250,7 @@ exttt ] [-O @textttsl shopt_option@texttt ] [@textttsl ar-
|
||||
.etc.
|
||||
|
||||
|
||||
Overfull \hbox (76.23077pt too wide) in paragraph at lines 5233--5233
|
||||
Overfull \hbox (76.23077pt too wide) in paragraph at lines 5234--5234
|
||||
[]@texttt bash [long-opt] [-abefhkmnptuvxdBCDHP] [-o @textttsl op-tion@texttt
|
||||
] [-O @textttsl shopt_option@texttt ] -c @textttsl string @texttt [@textttsl ar
|
||||
-
|
||||
@@ -264,7 +264,7 @@ Overfull \hbox (76.23077pt too wide) in paragraph at lines 5233--5233
|
||||
.etc.
|
||||
|
||||
|
||||
Overfull \hbox (34.72258pt too wide) in paragraph at lines 5234--5234
|
||||
Overfull \hbox (34.72258pt too wide) in paragraph at lines 5235--5235
|
||||
[]@texttt bash [long-opt] -s [-abefhkmnptuvxdBCDHP] [-o @textttsl op-tion@text
|
||||
tt ] [-O @textttsl shopt_option@texttt ] [@textttsl ar-
|
||||
|
||||
@@ -277,7 +277,7 @@ tt ] [-O @textttsl shopt_option@texttt ] [@textttsl ar-
|
||||
.etc.
|
||||
|
||||
[71] [72]
|
||||
Underfull \hbox (badness 2245) in paragraph at lines 5408--5410
|
||||
Underfull \hbox (badness 2245) in paragraph at lines 5409--5411
|
||||
[]@textrm When a lo-gin shell ex-its, Bash reads and ex-e-cutes com-mands from
|
||||
the file
|
||||
|
||||
@@ -290,7 +290,7 @@ the file
|
||||
.etc.
|
||||
|
||||
[73] [74] [75] [76] [77] [78] [79] [80] [81] [82] [83] [84] [85]
|
||||
Underfull \hbox (badness 2521) in paragraph at lines 6546--6549
|
||||
Underfull \hbox (badness 2521) in paragraph at lines 6547--6550
|
||||
@textrm `@texttt --enable-strict-posix-default[]@textrm '[] to @texttt configur
|
||||
e[] @textrm when build-ing (see Sec-tion 10.8
|
||||
|
||||
@@ -346,7 +346,7 @@ Underfull \hbox (badness 2753) in paragraph at lines 1827--1830
|
||||
[115] [116]) (/Users/chet/src/bash/src/lib/readline/doc/hsuser.texi Chapter 9
|
||||
[117] [118] [119] [120] [121] [122]) Chapter 10 [123] [124] [125] [126]
|
||||
[127]
|
||||
Underfull \hbox (badness 2772) in paragraph at lines 7147--7151
|
||||
Underfull \hbox (badness 2772) in paragraph at lines 7148--7152
|
||||
[]@textrm Enable sup-port for large files (@texttt http://www.sas.com/standard
|
||||
s/large_
|
||||
|
||||
@@ -366,10 +366,10 @@ s/large_
|
||||
Here is how much of TeX's memory you used:
|
||||
2078 strings out of 97980
|
||||
28503 string characters out of 1221004
|
||||
64629 words of memory out of 1500000
|
||||
64631 words of memory out of 1500000
|
||||
2894 multiletter control sequences out of 10000+50000
|
||||
32127 words of font info for 112 fonts, out of 1200000 for 2000
|
||||
51 hyphenation exceptions out of 8191
|
||||
16i,6n,14p,315b,699s stack positions out of 5000i,500n,6000p,200000b,5000s
|
||||
|
||||
Output written on bashref.dvi (162 pages, 653492 bytes).
|
||||
Output written on bashref.dvi (162 pages, 653572 bytes).
|
||||
|
||||
Binary file not shown.
+45
-43
@@ -11,7 +11,7 @@
|
||||
%DVIPSWebPage: (www.radicaleye.com)
|
||||
%DVIPSCommandLine: dvips -D 600 -t letter -o bashref.ps bashref.dvi
|
||||
%DVIPSParameters: dpi=600
|
||||
%DVIPSSource: TeX output 2009.06.08:0833
|
||||
%DVIPSSource: TeX output 2009.06.17:0851
|
||||
%%BeginProcSet: tex.pro 0 0
|
||||
%!
|
||||
/TeXDict 300 dict def TeXDict begin/N{def}def/B{bind def}N/S{exch}N/X{S
|
||||
@@ -4325,10 +4325,10 @@ b(oundation)p 150 5141 3600 17 v eop end
|
||||
%%Page: 2 2
|
||||
TeXDict begin 2 1 bop 150 2889 a Ft(This)35 b(text)h(is)g(a)g(brief)f
|
||||
(description)h(of)f(the)h(features)g(that)g(are)g(presen)m(t)g(in)f
|
||||
(the)h(Bash)f(shell)h(\(v)m(ersion)150 2999 y(4.0,)c(5)e(June)g
|
||||
(2009\).)150 3133 y(This)37 b(is)h(Edition)f(4.0,)k(last)e(up)s(dated)d
|
||||
(5)i(June)f(2009,)k(of)d Fq(The)f(GNU)h(Bash)g(Reference)h(Man)m(ual)p
|
||||
Ft(,)h(for)150 3243 y Fs(Bash)p Ft(,)29 b(V)-8 b(ersion)31
|
||||
(the)h(Bash)f(shell)h(\(v)m(ersion)150 2999 y(4.0,)c(17)f(June)e
|
||||
(2009\).)150 3133 y(This)34 b(is)h(Edition)g(4.0,)i(last)e(up)s(dated)f
|
||||
(17)h(June)f(2009,)k(of)d Fq(The)f(GNU)i(Bash)f(Reference)g(Man)m(ual)p
|
||||
Ft(,)i(for)150 3243 y Fs(Bash)p Ft(,)29 b(V)-8 b(ersion)31
|
||||
b(4.0.)150 3377 y(Cop)m(yrigh)m(t)602 3374 y(c)577 3377
|
||||
y Fp(\015)f Ft(1988{2009)35 b(F)-8 b(ree)31 b(Soft)m(w)m(are)h(F)-8
|
||||
b(oundation,)31 b(Inc.)150 3512 y(P)m(ermission)h(is)h(gran)m(ted)g(to)
|
||||
@@ -8616,63 +8616,65 @@ eop end
|
||||
%%Page: 53 59
|
||||
TeXDict begin 53 58 bop 150 -116 a Ft(Chapter)30 b(4:)41
|
||||
b(Shell)30 b(Builtin)h(Commands)2069 b(53)1110 299 y
|
||||
Fs(onecmd)192 b Ft(Same)30 b(as)h Fs(-t)p Ft(.)1110 467
|
||||
Fs(onecmd)192 b Ft(Same)30 b(as)h Fs(-t)p Ft(.)1110 459
|
||||
y Fs(physical)96 b Ft(Same)30 b(as)h Fs(-P)p Ft(.)1110
|
||||
636 y Fs(pipefail)96 b Ft(If)44 b(set,)k(the)d(return)e(v)-5
|
||||
619 y Fs(pipefail)96 b Ft(If)44 b(set,)k(the)d(return)e(v)-5
|
||||
b(alue)45 b(of)f(a)h(pip)s(eline)e(is)i(the)f(v)-5 b(alue)45
|
||||
b(of)1590 746 y(the)33 b(last)h(\(righ)m(tmost\))h(command)e(to)h(exit)
|
||||
g(with)f(a)g(non-zero)1590 855 y(status,)28 b(or)f(zero)g(if)f(all)i
|
||||
b(of)1590 729 y(the)33 b(last)h(\(righ)m(tmost\))h(command)e(to)h(exit)
|
||||
g(with)f(a)g(non-zero)1590 838 y(status,)28 b(or)f(zero)g(if)f(all)i
|
||||
(commands)e(in)g(the)h(pip)s(eline)f(exit)i(suc-)1590
|
||||
965 y(cessfully)-8 b(.)41 b(This)30 b(option)h(is)f(disabled)g(b)m(y)h
|
||||
(default.)1110 1133 y Fs(posix)240 b Ft(Change)30 b(the)g(b)s(eha)m
|
||||
948 y(cessfully)-8 b(.)41 b(This)30 b(option)h(is)f(disabled)g(b)m(y)h
|
||||
(default.)1110 1108 y Fs(posix)240 b Ft(Change)30 b(the)g(b)s(eha)m
|
||||
(vior)h(of)f(Bash)g(where)g(the)g(default)h(op)s(era-)1590
|
||||
1243 y(tion)25 b(di\013ers)f(from)g(the)h Fl(posix)f
|
||||
Ft(standard)f(to)i(matc)m(h)h(the)f(stan-)1590 1353 y(dard)32
|
||||
1218 y(tion)25 b(di\013ers)f(from)g(the)h Fl(posix)f
|
||||
Ft(standard)f(to)i(matc)m(h)h(the)f(stan-)1590 1327 y(dard)32
|
||||
b(\(see)i(Section)g(6.11)h([Bash)e(POSIX)f(Mo)s(de],)j(page)e(84\).)
|
||||
1590 1462 y(This)k(is)g(in)m(tended)g(to)h(mak)m(e)g(Bash)g(b)s(eha)m
|
||||
(v)m(e)g(as)g(a)f(strict)h(su-)1590 1572 y(p)s(erset)30
|
||||
b(of)h(that)f(standard.)1110 1740 y Fs(privileged)1590
|
||||
1850 y Ft(Same)g(as)h Fs(-p)p Ft(.)1110 2019 y Fs(verbose)144
|
||||
b Ft(Same)30 b(as)h Fs(-v)p Ft(.)1110 2187 y Fs(vi)384
|
||||
1590 1437 y(This)k(is)g(in)m(tended)g(to)h(mak)m(e)g(Bash)g(b)s(eha)m
|
||||
(v)m(e)g(as)g(a)f(strict)h(su-)1590 1547 y(p)s(erset)30
|
||||
b(of)h(that)f(standard.)1110 1707 y Fs(privileged)1590
|
||||
1816 y Ft(Same)g(as)h Fs(-p)p Ft(.)1110 1976 y Fs(verbose)144
|
||||
b Ft(Same)30 b(as)h Fs(-v)p Ft(.)1110 2137 y Fs(vi)384
|
||||
b Ft(Use)36 b(a)g Fs(vi)p Ft(-st)m(yle)g(line)g(editing)g(in)m
|
||||
(terface.)58 b(This)35 b(also)h(a\013ects)1590 2297 y(the)31
|
||||
(terface.)58 b(This)35 b(also)h(a\013ects)1590 2246 y(the)31
|
||||
b(editing)g(in)m(terface)h(used)d(for)h Fs(read)f(-e)p
|
||||
Ft(.)1110 2465 y Fs(xtrace)192 b Ft(Same)30 b(as)h Fs(-x)p
|
||||
Ft(.)630 2634 y Fs(-p)384 b Ft(T)-8 b(urn)33 b(on)h(privileged)h(mo)s
|
||||
Ft(.)1110 2406 y Fs(xtrace)192 b Ft(Same)30 b(as)h Fs(-x)p
|
||||
Ft(.)630 2567 y Fs(-p)384 b Ft(T)-8 b(urn)33 b(on)h(privileged)h(mo)s
|
||||
(de.)51 b(In)34 b(this)g(mo)s(de,)h(the)f Fs($BASH_ENV)e
|
||||
Ft(and)h Fs($ENV)1110 2744 y Ft(\014les)k(are)h(not)g(pro)s(cessed,)h
|
||||
Ft(and)h Fs($ENV)1110 2676 y Ft(\014les)k(are)h(not)g(pro)s(cessed,)h
|
||||
(shell)f(functions)f(are)h(not)f(inherited)h(from)f(the)1110
|
||||
2853 y(en)m(vironmen)m(t,)47 b(and)42 b(the)h Fs(SHELLOPTS)p
|
||||
2786 y(en)m(vironmen)m(t,)47 b(and)42 b(the)h Fs(SHELLOPTS)p
|
||||
Ft(,)g Fs(CDPATH)e Ft(and)i Fs(GLOBIGNORE)c Ft(v)-5 b(ari-)1110
|
||||
2963 y(ables,)36 b(if)e(they)g(app)s(ear)g(in)g(the)g(en)m(vironmen)m
|
||||
(t,)i(are)f(ignored.)53 b(If)33 b(the)i(shell)1110 3072
|
||||
2895 y(ables,)36 b(if)e(they)g(app)s(ear)g(in)g(the)g(en)m(vironmen)m
|
||||
(t,)i(are)f(ignored.)53 b(If)33 b(the)i(shell)1110 3005
|
||||
y(is)i(started)h(with)f(the)g(e\013ectiv)m(e)j(user)d(\(group\))g(id)g
|
||||
(not)g(equal)h(to)g(the)f(real)1110 3182 y(user)h(\(group\))h(id,)i
|
||||
(not)g(equal)h(to)g(the)f(real)1110 3114 y(user)h(\(group\))h(id,)i
|
||||
(and)d(the)h Fs(-p)f Ft(option)i(is)e(not)i(supplied,)f(these)h
|
||||
(actions)1110 3292 y(are)32 b(tak)m(en)i(and)d(the)h(e\013ectiv)m(e)j
|
||||
(actions)1110 3224 y(are)32 b(tak)m(en)i(and)d(the)h(e\013ectiv)m(e)j
|
||||
(user)c(id)h(is)g(set)h(to)f(the)h(real)f(user)g(id.)45
|
||||
b(If)32 b(the)1110 3401 y Fs(-p)i Ft(option)h(is)g(supplied)f(at)h
|
||||
b(If)32 b(the)1110 3334 y Fs(-p)i Ft(option)h(is)g(supplied)f(at)h
|
||||
(startup,)h(the)f(e\013ectiv)m(e)i(user)d(id)g(is)h(not)g(reset.)1110
|
||||
3511 y(T)-8 b(urning)35 b(this)i(option)g(o\013)g(causes)g(the)g
|
||||
3443 y(T)-8 b(urning)35 b(this)i(option)g(o\013)g(causes)g(the)g
|
||||
(e\013ectiv)m(e)i(user)d(and)g(group)g(ids)g(to)1110
|
||||
3620 y(b)s(e)30 b(set)h(to)g(the)f(real)h(user)f(and)g(group)g(ids.)630
|
||||
3789 y Fs(-t)384 b Ft(Exit)31 b(after)g(reading)f(and)g(executing)h
|
||||
(one)g(command.)630 3957 y Fs(-u)384 b Ft(T)-8 b(reat)38
|
||||
b(unset)e(v)-5 b(ariables)37 b(as)h(an)e(error)h(when)e(p)s(erforming)h
|
||||
(parameter)h(ex-)1110 4067 y(pansion.)58 b(An)36 b(error)f(message)j
|
||||
(will)e(b)s(e)g(written)g(to)h(the)g(standard)e(error,)1110
|
||||
4177 y(and)30 b(a)h(non-in)m(teractiv)m(e)i(shell)d(will)h(exit.)630
|
||||
4345 y Fs(-v)384 b Ft(Prin)m(t)30 b(shell)h(input)e(lines)i(as)g(they)f
|
||||
(are)h(read.)630 4514 y Fs(-x)384 b Ft(Prin)m(t)21 b(a)h(trace)h(of)f
|
||||
3553 y(b)s(e)30 b(set)h(to)g(the)f(real)h(user)f(and)g(group)g(ids.)630
|
||||
3713 y Fs(-t)384 b Ft(Exit)31 b(after)g(reading)f(and)g(executing)h
|
||||
(one)g(command.)630 3873 y Fs(-u)384 b Ft(T)-8 b(reat)25
|
||||
b(unset)e(v)-5 b(ariables)25 b(and)e(parameters)h(other)h(than)e(the)h
|
||||
(sp)s(ecial)h(param-)1110 3983 y(eters)35 b(`)p Fs(@)p
|
||||
Ft(')f(or)g(`)p Fs(*)p Ft(')h(as)f(an)g(error)g(when)f(p)s(erforming)g
|
||||
(parameter)i(expansion.)1110 4092 y(An)28 b(error)h(message)g(will)g(b)
|
||||
s(e)f(written)h(to)h(the)e(standard)g(error,)h(and)f(a)h(non-)1110
|
||||
4202 y(in)m(teractiv)m(e)k(shell)e(will)g(exit.)630 4362
|
||||
y Fs(-v)384 b Ft(Prin)m(t)30 b(shell)h(input)e(lines)i(as)g(they)f(are)
|
||||
h(read.)630 4522 y Fs(-x)384 b Ft(Prin)m(t)21 b(a)h(trace)h(of)f
|
||||
(simple)f(commands,)i Fs(for)e Ft(commands,)i Fs(case)d
|
||||
Ft(commands,)1110 4623 y Fs(select)29 b Ft(commands,)j(and)e
|
||||
Ft(commands,)1110 4632 y Fs(select)29 b Ft(commands,)j(and)e
|
||||
(arithmetic)j Fs(for)d Ft(commands)h(and)f(their)i(argu-)1110
|
||||
4733 y(men)m(ts)h(or)f(asso)s(ciated)i(w)m(ord)e(lists)h(after)g(they)f
|
||||
(are)h(expanded)f(and)f(b)s(efore)1110 4843 y(they)i(are)g(executed.)49
|
||||
4741 y(men)m(ts)h(or)f(asso)s(ciated)i(w)m(ord)e(lists)h(after)g(they)f
|
||||
(are)h(expanded)f(and)f(b)s(efore)1110 4851 y(they)i(are)g(executed.)49
|
||||
b(The)32 b(v)-5 b(alue)33 b(of)g(the)g Fs(PS4)f Ft(v)-5
|
||||
b(ariable)34 b(is)f(expanded)f(and)1110 4952 y(the)24
|
||||
b(ariable)34 b(is)f(expanded)f(and)1110 4961 y(the)24
|
||||
b(resultan)m(t)h(v)-5 b(alue)24 b(is)g(prin)m(ted)g(b)s(efore)f(the)h
|
||||
(command)g(and)f(its)i(expanded)1110 5062 y(argumen)m(ts.)630
|
||||
(command)g(and)f(its)i(expanded)1110 5070 y(argumen)m(ts.)630
|
||||
5230 y Fs(-B)384 b Ft(The)41 b(shell)g(will)g(p)s(erform)f(brace)h
|
||||
(expansion)g(\(see)h(Section)g(3.5.1)g([Brace)1110 5340
|
||||
y(Expansion],)30 b(page)h(18\).)42 b(This)30 b(option)h(is)f(on)g(b)m
|
||||
|
||||
+2
-1
@@ -4150,7 +4150,8 @@ and group ids to be set to the real user and group ids.
|
||||
Exit after reading and executing one command.
|
||||
|
||||
@item -u
|
||||
Treat unset variables as an error when performing parameter expansion.
|
||||
Treat unset variables and parameters other than the special parameters
|
||||
@samp{@@} or @samp{*} as an error when performing parameter expansion.
|
||||
An error message will be written to the standard error, and a non-interactive
|
||||
shell will exit.
|
||||
|
||||
|
||||
+6
-4
@@ -1059,10 +1059,12 @@ BBAASSHH BBUUIILLTTIINN CCOOMMMMAANNDDSS
|
||||
this option off causes the effective user and group ids
|
||||
to be set to the real user and group ids.
|
||||
--tt Exit after reading and executing one command.
|
||||
--uu Treat unset variables as an error when performing param-
|
||||
eter expansion. If expansion is attempted on an unset
|
||||
variable, the shell prints an error message, and, if not
|
||||
interactive, exits with a non-zero status.
|
||||
--uu Treat unset variables and parameters other than the spe-
|
||||
cial parameters "@" and "*" as an error when performing
|
||||
parameter expansion. If expansion is attempted on an
|
||||
unset variable or parameter, the shell prints an error
|
||||
message, and, if not interactive, exits with a non-zero
|
||||
status.
|
||||
--vv Print shell input lines as they are read.
|
||||
--xx After expanding each _s_i_m_p_l_e _c_o_m_m_a_n_d, ffoorr command, ccaassee
|
||||
command, sseelleecctt command, or arithmetic ffoorr command, dis-
|
||||
|
||||
+430
-431
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -1,6 +1,6 @@
|
||||
%!PS-Adobe-3.0
|
||||
%%Creator: groff version 1.19.2
|
||||
%%CreationDate: Mon Jun 8 08:33:19 2009
|
||||
%%CreationDate: Wed Jun 17 08:51:31 2009
|
||||
%%DocumentNeededResources: font Times-Roman
|
||||
%%+ font Times-Bold
|
||||
%%DocumentSuppliedResources: procset grops 1.19 2
|
||||
|
||||
+2
-2
@@ -2,9 +2,9 @@
|
||||
Copyright (C) 1988-2009 Free Software Foundation, Inc.
|
||||
@end ignore
|
||||
|
||||
@set LASTCHANGE Fri Jun 5 15:46:24 EDT 2009
|
||||
@set LASTCHANGE Wed Jun 17 08:50:54 EDT 2009
|
||||
|
||||
@set EDITION 4.0
|
||||
@set VERSION 4.0
|
||||
@set UPDATED 5 June 2009
|
||||
@set UPDATED 17 June 2009
|
||||
@set UPDATED-MONTH June 2009
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#From: Mark Kennedy <mtk@ny.ubs.com>
|
||||
#From: Mark Kennedy <mark.t.kennedy@gmail.com> (<mtk@ny.ubs.com>)
|
||||
#Message-ID: <35E2B899.63A02DF5@ny.ubs.com>
|
||||
#Date: Tue, 25 Aug 1998 09:14:01 -0400
|
||||
#To: chet@nike.ins.cwru.edu
|
||||
|
||||
@@ -48,6 +48,12 @@
|
||||
|
||||
#include <bashansi.h>
|
||||
|
||||
#if defined (BROKEN_DIRENT_D_INO)
|
||||
# include "command.h"
|
||||
# include "general.h"
|
||||
# include "externs.h"
|
||||
#endif
|
||||
|
||||
#include <xmalloc.h>
|
||||
|
||||
#if !defined (errno)
|
||||
|
||||
@@ -6793,7 +6793,7 @@ parameter_brace_expand (string, indexp, quoted, quoted_dollar_atp, contains_doll
|
||||
return &expand_wdesc_error;
|
||||
|
||||
case RBRACE:
|
||||
if (var_is_set == 0 && unbound_vars_is_error)
|
||||
if (var_is_set == 0 && unbound_vars_is_error && ((name[0] != '@' && name[0] != '*') || name[1]))
|
||||
{
|
||||
last_command_exit_value = EXECUTION_FAILURE;
|
||||
err_unboundvar (name);
|
||||
|
||||
@@ -4,4 +4,6 @@ echo ${#@}
|
||||
echo ${@:-bar}
|
||||
|
||||
echo $@
|
||||
echo after
|
||||
echo after 1
|
||||
echo ${@}
|
||||
echo after 2
|
||||
|
||||
@@ -3,5 +3,7 @@ set -u
|
||||
echo ${#*}
|
||||
echo ${*:-bar}
|
||||
|
||||
echo $*
|
||||
echo after 1
|
||||
echo ${*}
|
||||
echo after
|
||||
echo after 2
|
||||
|
||||
+8
-2
@@ -151,10 +151,16 @@ argv[3] = <arq>
|
||||
argv[4] = <>
|
||||
0
|
||||
bar
|
||||
./dollar-at3.sub: line 6: $@: unbound variable
|
||||
|
||||
after 1
|
||||
|
||||
after 2
|
||||
0
|
||||
bar
|
||||
./dollar-star4.sub: line 6: *: unbound variable
|
||||
|
||||
after 1
|
||||
|
||||
after 2
|
||||
a b
|
||||
ab
|
||||
cd
|
||||
|
||||
@@ -582,7 +582,7 @@ get_original_signal (sig)
|
||||
int sig;
|
||||
{
|
||||
/* If we aren't sure the of the original value, then get it. */
|
||||
if (original_signals[sig] == (SigHandler *)IMPOSSIBLE_TRAP_HANDLER)
|
||||
if (sig > 0 && sig < NSIG && original_signals[sig] == (SigHandler *)IMPOSSIBLE_TRAP_HANDLER)
|
||||
GETORIGSIG (sig);
|
||||
}
|
||||
|
||||
|
||||
@@ -221,9 +221,11 @@ static SHELL_VAR *get_groupset __P((SHELL_VAR *));
|
||||
static SHELL_VAR *build_hashcmd __P((SHELL_VAR *));
|
||||
static SHELL_VAR *get_hashcmd __P((SHELL_VAR *));
|
||||
static SHELL_VAR *assign_hashcmd __P((SHELL_VAR *, char *, arrayind_t, char *));
|
||||
# if defined (ALIAS)
|
||||
static SHELL_VAR *build_aliasvar __P((SHELL_VAR *));
|
||||
static SHELL_VAR *get_aliasvar __P((SHELL_VAR *));
|
||||
static SHELL_VAR *assign_aliasvar __P((SHELL_VAR *, char *, arrayind_t, char *));
|
||||
# endif
|
||||
#endif
|
||||
|
||||
static SHELL_VAR *get_funcname __P((SHELL_VAR *));
|
||||
@@ -1548,6 +1550,7 @@ assign_hashcmd (self, value, ind, key)
|
||||
return (build_hashcmd (self));
|
||||
}
|
||||
|
||||
#if defined (ALIAS)
|
||||
static SHELL_VAR *
|
||||
build_aliasvar (self)
|
||||
SHELL_VAR *self;
|
||||
@@ -1600,6 +1603,8 @@ assign_aliasvar (self, value, ind, key)
|
||||
add_alias (key, value);
|
||||
return (build_aliasvar (self));
|
||||
}
|
||||
#endif /* ALIAS */
|
||||
|
||||
#endif /* ARRAY_VARS */
|
||||
|
||||
/* If ARRAY_VARS is not defined, this just returns the name of any
|
||||
@@ -1695,7 +1700,9 @@ initialize_dynamic_variables ()
|
||||
v = init_dynamic_array_var ("BASH_LINENO", get_self, null_array_assign, att_noassign|att_nounset);
|
||||
|
||||
v = init_dynamic_assoc_var ("BASH_CMDS", get_hashcmd, assign_hashcmd, att_nofree);
|
||||
# if defined (ALIAS)
|
||||
v = init_dynamic_assoc_var ("BASH_ALIASES", get_aliasvar, assign_aliasvar, att_nofree);
|
||||
# endif
|
||||
#endif
|
||||
|
||||
v = init_funcname_var ();
|
||||
|
||||
Reference in New Issue
Block a user