mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-08-03 16:59:22 +02:00
commit bash-20151016 snapshot
This commit is contained in:
@@ -427,6 +427,10 @@ compat43 set
|
||||
(declare -a foo='(1 2)')
|
||||
- word expansion errors are considered non-fatal errors that cause the
|
||||
current command to fail, even in Posix mode
|
||||
- when executing a shell function, the loop state (while/until/etc.) is
|
||||
not reset, so `break' or `continue' in a shell function will break or
|
||||
continue loops in the calling context. Bash-4.4 and later reset the
|
||||
loop state to prevent this.
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
|
||||
@@ -9750,3 +9750,35 @@ variables.c
|
||||
the builtin returns), make sure to copy the array or hash table so
|
||||
the variable is duplicated correctly. Fixes seg fault reported by
|
||||
Linda Walsh <bash@tlinx.org>
|
||||
|
||||
10/13
|
||||
-----
|
||||
variables.c
|
||||
- initialize_shell_variables: add call to sv_shcompat, so BASH_COMPAT can
|
||||
be set in the initial environment
|
||||
|
||||
execute_cmd.c
|
||||
- execute_function: set loop_level to 0 only if shell_compatibility_level
|
||||
is greater than bash-4.3; this was kind of an incompatible change
|
||||
|
||||
COMPAT,doc/{bash.1,bashref.texi}
|
||||
- compat43: added loop_level changes to description
|
||||
|
||||
10/15
|
||||
-----
|
||||
lib/sh/casemod.c,lib/readline/display.c
|
||||
- make sure mb_cur_max variable is defined outside of HANDLE_MULTIBYTE
|
||||
if it's used outside HANDLE_MULTIBYTE. Fixes from Greg Wooledge
|
||||
<wooledg@eeg.ccf.org>
|
||||
|
||||
support/Makefile.in
|
||||
- bash.pc: remove as part of distclean, not clean. Report from Andreas
|
||||
Schwab <schwab@linux-m68k.org>
|
||||
|
||||
10/17
|
||||
-----
|
||||
subst.c
|
||||
- array_var_assignment: make sure to call quote_string or quote_escapes
|
||||
on the assignment string, so spaces in the assignment survive word
|
||||
splitting. Fixes bug reported by isabella parakiss
|
||||
<izaberina@gmail.com>
|
||||
|
||||
+1866
-1862
File diff suppressed because it is too large
Load Diff
+10
-7
@@ -5,12 +5,12 @@
|
||||
.\" Case Western Reserve University
|
||||
.\" chet.ramey@case.edu
|
||||
.\"
|
||||
.\" Last Change: Mon Oct 5 14:32:44 EDT 2015
|
||||
.\" Last Change: Tue Oct 13 17:03:11 EDT 2015
|
||||
.\"
|
||||
.\" bash_builtins, strip all but Built-Ins section
|
||||
.if \n(zZ=1 .ig zZ
|
||||
.if \n(zY=1 .ig zY
|
||||
.TH BASH 1 "2015 October 5" "GNU Bash 4.4"
|
||||
.TH BASH 1 "2015 October 11" "GNU Bash 4.4"
|
||||
.\"
|
||||
.\" There's some problem with having a `@'
|
||||
.\" in a tagged paragraph with the BSD man macros.
|
||||
@@ -8638,9 +8638,8 @@ In addition to the standard \fIprintf\fP(1) format specifications,
|
||||
.B %b
|
||||
causes
|
||||
\fBprintf\fP to expand backslash escape sequences in the corresponding
|
||||
\fIargument\fP (except that \fB\ec\fP terminates output, backslashes in
|
||||
\fB\e\(aq\fP, \fB\e"\fP, and \fB\e?\fP are not removed, and octal escapes
|
||||
beginning with \fB\e0\fP may contain up to four digits).
|
||||
\fIargument\fP
|
||||
in the same way as \fBecho \-e\fP.
|
||||
.TP
|
||||
.B %q
|
||||
causes \fBprintf\fP to output the corresponding
|
||||
@@ -9487,9 +9486,13 @@ expansion using quote removal.
|
||||
If set,
|
||||
.B bash
|
||||
does not print a warning message if an attempt is made to use a quoted compound
|
||||
array assignment as an argument to \fBdeclare\fP, and makes word expansion errors
|
||||
array assignment as an argument to \fBdeclare\fP,
|
||||
makes word expansion errors
|
||||
non-fatal errors that cause the current command to fail (the default behavior is
|
||||
to make them fatal errors that cause the shell to exit).
|
||||
to make them fatal errors that cause the shell to exit),
|
||||
and does not reset the
|
||||
loop state when a shell function is executed (this allows \fBbreak\fP or
|
||||
\fBcontinue\fP in a shell function to affect loops in the caller's context).
|
||||
.TP 8
|
||||
.B complete_fullquote
|
||||
If set,
|
||||
|
||||
+16
-8
@@ -3,7 +3,7 @@
|
||||
</HEAD>
|
||||
<BODY><TABLE WIDTH=100%>
|
||||
<TR>
|
||||
<TH ALIGN=LEFT width=33%>BASH(1)<TH ALIGN=CENTER width=33%>2015 October 2<TH ALIGN=RIGHT width=33%>BASH(1)
|
||||
<TH ALIGN=LEFT width=33%>BASH(1)<TH ALIGN=CENTER width=33%>2015 October 11<TH ALIGN=RIGHT width=33%>BASH(1)
|
||||
</TR>
|
||||
</TABLE>
|
||||
<BR><A HREF="#index">Index</A>
|
||||
@@ -2829,6 +2829,11 @@ strings preceded by a <B>$</B>.
|
||||
|
||||
<DD>
|
||||
This variable determines the locale category used for number formatting.
|
||||
<DT><B>LC_TIME</B>
|
||||
|
||||
<DD>
|
||||
This variable determines the locale category used for data and time
|
||||
formatting.
|
||||
<DT><B>LINES</B>
|
||||
|
||||
<DD>
|
||||
@@ -10980,9 +10985,8 @@ In addition to the standard <I>printf</I>(1) format specifications,
|
||||
<DD>
|
||||
causes
|
||||
<B>printf</B> to expand backslash escape sequences in the corresponding
|
||||
<I>argument</I> (except that <B>\c</B> terminates output, backslashes in
|
||||
<B>\aq</B>, <B>\"</B>, and <B>\?</B> are not removed, and octal escapes
|
||||
beginning with <B>\0</B> may contain up to four digits).
|
||||
<I>argument</I>
|
||||
in the same way as <B>echo -e</B>.
|
||||
<DT><B>%q</B>
|
||||
|
||||
<DD>
|
||||
@@ -12059,9 +12063,13 @@ If set,
|
||||
<B>bash</B>
|
||||
|
||||
does not print a warning message if an attempt is made to use a quoted compound
|
||||
array assignment as an argument to <B>declare</B>, and makes word expansion errors
|
||||
array assignment as an argument to <B>declare</B>,
|
||||
makes word expansion errors
|
||||
non-fatal errors that cause the current command to fail (the default behavior is
|
||||
to make them fatal errors that cause the shell to exit).
|
||||
to make them fatal errors that cause the shell to exit),
|
||||
and does not reset the
|
||||
loop state when a shell function is executed (this allows <B>break</B> or
|
||||
<B>continue</B> in a shell function to affect loops in the caller's context).
|
||||
<DT><B>complete_fullquote</B>
|
||||
|
||||
<DD>
|
||||
@@ -13408,7 +13416,7 @@ There may be only one active coprocess at a time.
|
||||
<HR>
|
||||
<TABLE WIDTH=100%>
|
||||
<TR>
|
||||
<TH ALIGN=LEFT width=33%>GNU Bash 4.4<TH ALIGN=CENTER width=33%>2015 October 2<TH ALIGN=RIGHT width=33%>BASH(1)
|
||||
<TH ALIGN=LEFT width=33%>GNU Bash 4.4<TH ALIGN=CENTER width=33%>2015 October 11<TH ALIGN=RIGHT width=33%>BASH(1)
|
||||
</TR>
|
||||
</TABLE>
|
||||
<HR>
|
||||
@@ -13514,6 +13522,6 @@ There may be only one active coprocess at a time.
|
||||
</DL>
|
||||
<HR>
|
||||
This document was created by man2html from bash.1.<BR>
|
||||
Time: 02 October 2015 07:16:35 EDT
|
||||
Time: 15 October 2015 10:10:58 EDT
|
||||
</BODY>
|
||||
</HTML>
|
||||
|
||||
Binary file not shown.
+1611
-1608
File diff suppressed because it is too large
Load Diff
Binary file not shown.
+710
-699
File diff suppressed because it is too large
Load Diff
+180
-173
@@ -2,9 +2,9 @@ This is bashref.info, produced by makeinfo version 6.0 from
|
||||
bashref.texi.
|
||||
|
||||
This text is a brief description of the features that are present in the
|
||||
Bash shell (version 4.4, 2 October 2015).
|
||||
Bash shell (version 4.4, 13 October 2015).
|
||||
|
||||
This is Edition 4.4, last updated 2 October 2015, of 'The GNU Bash
|
||||
This is Edition 4.4, last updated 13 October 2015, of 'The GNU Bash
|
||||
Reference Manual', for 'Bash', Version 4.4.
|
||||
|
||||
Copyright (C) 1988-2014 Free Software Foundation, Inc.
|
||||
@@ -27,10 +27,10 @@ Bash Features
|
||||
*************
|
||||
|
||||
This text is a brief description of the features that are present in the
|
||||
Bash shell (version 4.4, 2 October 2015). The Bash home page is
|
||||
Bash shell (version 4.4, 13 October 2015). The Bash home page is
|
||||
<http://www.gnu.org/software/bash/>.
|
||||
|
||||
This is Edition 4.4, last updated 2 October 2015, of 'The GNU Bash
|
||||
This is Edition 4.4, last updated 13 October 2015, of 'The GNU Bash
|
||||
Reference Manual', for 'Bash', Version 4.4.
|
||||
|
||||
Bash contains features that appear in other popular shells, and some
|
||||
@@ -3634,9 +3634,8 @@ standard.
|
||||
|
||||
'%b'
|
||||
Causes 'printf' to expand backslash escape sequences in the
|
||||
corresponding ARGUMENT, except that '\c' terminates output,
|
||||
backslashes in '\'', '\"', and '\?' are not removed, and octal
|
||||
escapes beginning with '\0' may contain up to four digits.
|
||||
corresponding ARGUMENT in the same way as 'echo -e' (*note
|
||||
Bash Builtins::).
|
||||
'%q'
|
||||
Causes 'printf' to output the corresponding ARGUMENT in a
|
||||
format that can be reused as shell input.
|
||||
@@ -4329,9 +4328,12 @@ This builtin allows you to change additional shell optional behavior.
|
||||
'compat43'
|
||||
If set, Bash does not print a warning message if an attempt is
|
||||
made to use a quoted compound array assignment as an argument
|
||||
to 'declare', and makes word expansion errors non-fatal errors
|
||||
to 'declare', makes word expansion errors non-fatal errors
|
||||
that cause the current command to fail (the default behavior
|
||||
is to make them fatal errors that cause the shell to exit).
|
||||
is to make them fatal errors that cause the shell to exit),
|
||||
and does not reset the loop state when a shell function is
|
||||
executed (this allows 'break' or 'continue' in a shell
|
||||
function to affect loops in the caller's context).
|
||||
|
||||
'complete_fullquote'
|
||||
If set, Bash quotes all shell metacharacters in filenames and
|
||||
@@ -5097,6 +5099,10 @@ Variables::).
|
||||
This variable determines the locale category used for number
|
||||
formatting.
|
||||
|
||||
'LC_TIME'
|
||||
This variable determines the locale category used for data and time
|
||||
formatting.
|
||||
|
||||
'LINENO'
|
||||
The line number in the script or shell function currently
|
||||
executing.
|
||||
@@ -10620,8 +10626,8 @@ D.1 Index of Shell Builtin Commands
|
||||
(line 53)
|
||||
* pwd: Bourne Shell Builtins.
|
||||
(line 205)
|
||||
* read: Bash Builtins. (line 458)
|
||||
* readarray: Bash Builtins. (line 548)
|
||||
* read: Bash Builtins. (line 457)
|
||||
* readarray: Bash Builtins. (line 547)
|
||||
* readonly: Bourne Shell Builtins.
|
||||
(line 215)
|
||||
* return: Bourne Shell Builtins.
|
||||
@@ -10630,7 +10636,7 @@ D.1 Index of Shell Builtin Commands
|
||||
* shift: Bourne Shell Builtins.
|
||||
(line 255)
|
||||
* shopt: The Shopt Builtin. (line 9)
|
||||
* source: Bash Builtins. (line 557)
|
||||
* source: Bash Builtins. (line 556)
|
||||
* suspend: Job Control Builtins.
|
||||
(line 101)
|
||||
* test: Bourne Shell Builtins.
|
||||
@@ -10639,12 +10645,12 @@ D.1 Index of Shell Builtin Commands
|
||||
(line 343)
|
||||
* trap: Bourne Shell Builtins.
|
||||
(line 349)
|
||||
* type: Bash Builtins. (line 562)
|
||||
* typeset: Bash Builtins. (line 594)
|
||||
* ulimit: Bash Builtins. (line 600)
|
||||
* type: Bash Builtins. (line 561)
|
||||
* typeset: Bash Builtins. (line 593)
|
||||
* ulimit: Bash Builtins. (line 599)
|
||||
* umask: Bourne Shell Builtins.
|
||||
(line 398)
|
||||
* unalias: Bash Builtins. (line 699)
|
||||
* unalias: Bash Builtins. (line 698)
|
||||
* unset: Bourne Shell Builtins.
|
||||
(line 416)
|
||||
* wait: Job Control Builtins.
|
||||
@@ -10838,15 +10844,16 @@ D.3 Parameter and Variable Index
|
||||
* LC_MESSAGES: Locale Translation. (line 11)
|
||||
* LC_MESSAGES <1>: Bash Variables. (line 444)
|
||||
* LC_NUMERIC: Bash Variables. (line 448)
|
||||
* LINENO: Bash Variables. (line 452)
|
||||
* LINES: Bash Variables. (line 456)
|
||||
* MACHTYPE: Bash Variables. (line 462)
|
||||
* LC_TIME: Bash Variables. (line 452)
|
||||
* LINENO: Bash Variables. (line 456)
|
||||
* LINES: Bash Variables. (line 460)
|
||||
* MACHTYPE: Bash Variables. (line 466)
|
||||
* MAIL: Bourne Shell Variables.
|
||||
(line 22)
|
||||
* MAILCHECK: Bash Variables. (line 466)
|
||||
* MAILCHECK: Bash Variables. (line 470)
|
||||
* MAILPATH: Bourne Shell Variables.
|
||||
(line 27)
|
||||
* MAPFILE: Bash Variables. (line 474)
|
||||
* MAPFILE: Bash Variables. (line 478)
|
||||
* mark-modified-lines: Readline Init File Syntax.
|
||||
(line 226)
|
||||
* mark-symlinked-directories: Readline Init File Syntax.
|
||||
@@ -10857,41 +10864,41 @@ D.3 Parameter and Variable Index
|
||||
(line 243)
|
||||
* meta-flag: Readline Init File Syntax.
|
||||
(line 183)
|
||||
* OLDPWD: Bash Variables. (line 478)
|
||||
* OLDPWD: Bash Variables. (line 482)
|
||||
* OPTARG: Bourne Shell Variables.
|
||||
(line 34)
|
||||
* OPTERR: Bash Variables. (line 481)
|
||||
* OPTERR: Bash Variables. (line 485)
|
||||
* OPTIND: Bourne Shell Variables.
|
||||
(line 38)
|
||||
* OSTYPE: Bash Variables. (line 485)
|
||||
* OSTYPE: Bash Variables. (line 489)
|
||||
* output-meta: Readline Init File Syntax.
|
||||
(line 248)
|
||||
* page-completions: Readline Init File Syntax.
|
||||
(line 253)
|
||||
* PATH: Bourne Shell Variables.
|
||||
(line 42)
|
||||
* PIPESTATUS: Bash Variables. (line 488)
|
||||
* POSIXLY_CORRECT: Bash Variables. (line 493)
|
||||
* PPID: Bash Variables. (line 502)
|
||||
* PROMPT_COMMAND: Bash Variables. (line 506)
|
||||
* PROMPT_DIRTRIM: Bash Variables. (line 510)
|
||||
* PIPESTATUS: Bash Variables. (line 492)
|
||||
* POSIXLY_CORRECT: Bash Variables. (line 497)
|
||||
* PPID: Bash Variables. (line 506)
|
||||
* PROMPT_COMMAND: Bash Variables. (line 510)
|
||||
* PROMPT_DIRTRIM: Bash Variables. (line 514)
|
||||
* PS1: Bourne Shell Variables.
|
||||
(line 48)
|
||||
* PS2: Bourne Shell Variables.
|
||||
(line 53)
|
||||
* PS3: Bash Variables. (line 516)
|
||||
* PS4: Bash Variables. (line 521)
|
||||
* PWD: Bash Variables. (line 527)
|
||||
* RANDOM: Bash Variables. (line 530)
|
||||
* READLINE_LINE: Bash Variables. (line 535)
|
||||
* READLINE_POINT: Bash Variables. (line 539)
|
||||
* REPLY: Bash Variables. (line 543)
|
||||
* PS3: Bash Variables. (line 520)
|
||||
* PS4: Bash Variables. (line 525)
|
||||
* PWD: Bash Variables. (line 531)
|
||||
* RANDOM: Bash Variables. (line 534)
|
||||
* READLINE_LINE: Bash Variables. (line 539)
|
||||
* READLINE_POINT: Bash Variables. (line 543)
|
||||
* REPLY: Bash Variables. (line 547)
|
||||
* revert-all-at-newline: Readline Init File Syntax.
|
||||
(line 263)
|
||||
* SECONDS: Bash Variables. (line 546)
|
||||
* SHELL: Bash Variables. (line 552)
|
||||
* SHELLOPTS: Bash Variables. (line 557)
|
||||
* SHLVL: Bash Variables. (line 566)
|
||||
* SECONDS: Bash Variables. (line 550)
|
||||
* SHELL: Bash Variables. (line 556)
|
||||
* SHELLOPTS: Bash Variables. (line 561)
|
||||
* SHLVL: Bash Variables. (line 570)
|
||||
* show-all-if-ambiguous: Readline Init File Syntax.
|
||||
(line 269)
|
||||
* show-all-if-unmodified: Readline Init File Syntax.
|
||||
@@ -10902,10 +10909,10 @@ D.3 Parameter and Variable Index
|
||||
(line 290)
|
||||
* TEXTDOMAIN: Locale Translation. (line 11)
|
||||
* TEXTDOMAINDIR: Locale Translation. (line 11)
|
||||
* TIMEFORMAT: Bash Variables. (line 571)
|
||||
* TMOUT: Bash Variables. (line 609)
|
||||
* TMPDIR: Bash Variables. (line 621)
|
||||
* UID: Bash Variables. (line 625)
|
||||
* TIMEFORMAT: Bash Variables. (line 575)
|
||||
* TMOUT: Bash Variables. (line 613)
|
||||
* TMPDIR: Bash Variables. (line 625)
|
||||
* UID: Bash Variables. (line 629)
|
||||
* vi-cmd-mode-string: Readline Init File Syntax.
|
||||
(line 303)
|
||||
* vi-ins-mode-string: Readline Init File Syntax.
|
||||
@@ -11273,134 +11280,134 @@ D.5 Concept Index
|
||||
|
||||
|
||||
Tag Table:
|
||||
Node: Top893
|
||||
Node: Introduction2809
|
||||
Node: What is Bash?3025
|
||||
Node: What is a shell?4139
|
||||
Node: Definitions6677
|
||||
Node: Basic Shell Features9615
|
||||
Node: Shell Syntax10834
|
||||
Node: Shell Operation11860
|
||||
Node: Quoting13153
|
||||
Node: Escape Character14453
|
||||
Node: Single Quotes14938
|
||||
Node: Double Quotes15286
|
||||
Node: ANSI-C Quoting16411
|
||||
Node: Locale Translation17664
|
||||
Node: Comments18560
|
||||
Node: Shell Commands19178
|
||||
Node: Simple Commands20050
|
||||
Node: Pipelines20681
|
||||
Node: Lists23424
|
||||
Node: Compound Commands25153
|
||||
Node: Looping Constructs26156
|
||||
Node: Conditional Constructs28619
|
||||
Node: Command Grouping39540
|
||||
Node: Coprocesses41019
|
||||
Node: GNU Parallel42851
|
||||
Node: Shell Functions46824
|
||||
Node: Shell Parameters52030
|
||||
Node: Positional Parameters56432
|
||||
Node: Special Parameters57332
|
||||
Node: Shell Expansions60669
|
||||
Node: Brace Expansion62606
|
||||
Node: Tilde Expansion65387
|
||||
Node: Shell Parameter Expansion67735
|
||||
Node: Command Substitution81867
|
||||
Node: Arithmetic Expansion83197
|
||||
Node: Process Substitution84129
|
||||
Node: Word Splitting85173
|
||||
Node: Filename Expansion86821
|
||||
Node: Pattern Matching89105
|
||||
Node: Quote Removal92803
|
||||
Node: Redirections93098
|
||||
Node: Executing Commands102321
|
||||
Node: Simple Command Expansion102991
|
||||
Node: Command Search and Execution104921
|
||||
Node: Command Execution Environment107257
|
||||
Node: Environment110241
|
||||
Node: Exit Status111900
|
||||
Node: Signals113570
|
||||
Node: Shell Scripts115537
|
||||
Node: Shell Builtin Commands118052
|
||||
Node: Bourne Shell Builtins120086
|
||||
Node: Bash Builtins140688
|
||||
Node: Modifying Shell Behavior169279
|
||||
Node: The Set Builtin169624
|
||||
Node: The Shopt Builtin180037
|
||||
Node: Special Builtins195042
|
||||
Node: Shell Variables196021
|
||||
Node: Bourne Shell Variables196458
|
||||
Node: Bash Variables198489
|
||||
Node: Bash Features225994
|
||||
Node: Invoking Bash226893
|
||||
Node: Bash Startup Files232842
|
||||
Node: Interactive Shells237945
|
||||
Node: What is an Interactive Shell?238355
|
||||
Node: Is this Shell Interactive?239004
|
||||
Node: Interactive Shell Behavior239819
|
||||
Node: Bash Conditional Expressions243118
|
||||
Node: Shell Arithmetic247119
|
||||
Node: Aliases249896
|
||||
Node: Arrays252444
|
||||
Node: The Directory Stack257528
|
||||
Node: Directory Stack Builtins258312
|
||||
Node: Controlling the Prompt261280
|
||||
Node: The Restricted Shell264026
|
||||
Node: Bash POSIX Mode265851
|
||||
Node: Job Control275506
|
||||
Node: Job Control Basics275966
|
||||
Node: Job Control Builtins280685
|
||||
Node: Job Control Variables285204
|
||||
Node: Command Line Editing286360
|
||||
Node: Introduction and Notation288031
|
||||
Node: Readline Interaction289654
|
||||
Node: Readline Bare Essentials290845
|
||||
Node: Readline Movement Commands292628
|
||||
Node: Readline Killing Commands293588
|
||||
Node: Readline Arguments295506
|
||||
Node: Searching296550
|
||||
Node: Readline Init File298736
|
||||
Node: Readline Init File Syntax299883
|
||||
Node: Conditional Init Constructs319608
|
||||
Node: Sample Init File322133
|
||||
Node: Bindable Readline Commands325250
|
||||
Node: Commands For Moving326454
|
||||
Node: Commands For History327597
|
||||
Node: Commands For Text331886
|
||||
Node: Commands For Killing335275
|
||||
Node: Numeric Arguments337756
|
||||
Node: Commands For Completion338895
|
||||
Node: Keyboard Macros343086
|
||||
Node: Miscellaneous Commands343773
|
||||
Node: Readline vi Mode349577
|
||||
Node: Programmable Completion350484
|
||||
Node: Programmable Completion Builtins357945
|
||||
Node: A Programmable Completion Example367831
|
||||
Node: Using History Interactively373083
|
||||
Node: Bash History Facilities373767
|
||||
Node: Bash History Builtins376766
|
||||
Node: History Interaction380763
|
||||
Node: Event Designators383727
|
||||
Node: Word Designators384946
|
||||
Node: Modifiers386583
|
||||
Node: Installing Bash387985
|
||||
Node: Basic Installation389122
|
||||
Node: Compilers and Options391813
|
||||
Node: Compiling For Multiple Architectures392554
|
||||
Node: Installation Names394217
|
||||
Node: Specifying the System Type395035
|
||||
Node: Sharing Defaults395751
|
||||
Node: Operation Controls396424
|
||||
Node: Optional Features397382
|
||||
Node: Reporting Bugs407639
|
||||
Node: Major Differences From The Bourne Shell408833
|
||||
Node: GNU Free Documentation License425685
|
||||
Node: Indexes450862
|
||||
Node: Builtin Index451316
|
||||
Node: Reserved Word Index458143
|
||||
Node: Variable Index460591
|
||||
Node: Function Index475904
|
||||
Node: Concept Index489124
|
||||
Node: Top895
|
||||
Node: Introduction2813
|
||||
Node: What is Bash?3029
|
||||
Node: What is a shell?4143
|
||||
Node: Definitions6681
|
||||
Node: Basic Shell Features9619
|
||||
Node: Shell Syntax10838
|
||||
Node: Shell Operation11864
|
||||
Node: Quoting13157
|
||||
Node: Escape Character14457
|
||||
Node: Single Quotes14942
|
||||
Node: Double Quotes15290
|
||||
Node: ANSI-C Quoting16415
|
||||
Node: Locale Translation17668
|
||||
Node: Comments18564
|
||||
Node: Shell Commands19182
|
||||
Node: Simple Commands20054
|
||||
Node: Pipelines20685
|
||||
Node: Lists23428
|
||||
Node: Compound Commands25157
|
||||
Node: Looping Constructs26160
|
||||
Node: Conditional Constructs28623
|
||||
Node: Command Grouping39544
|
||||
Node: Coprocesses41023
|
||||
Node: GNU Parallel42855
|
||||
Node: Shell Functions46828
|
||||
Node: Shell Parameters52034
|
||||
Node: Positional Parameters56436
|
||||
Node: Special Parameters57336
|
||||
Node: Shell Expansions60673
|
||||
Node: Brace Expansion62610
|
||||
Node: Tilde Expansion65391
|
||||
Node: Shell Parameter Expansion67739
|
||||
Node: Command Substitution81871
|
||||
Node: Arithmetic Expansion83201
|
||||
Node: Process Substitution84133
|
||||
Node: Word Splitting85177
|
||||
Node: Filename Expansion86825
|
||||
Node: Pattern Matching89109
|
||||
Node: Quote Removal92807
|
||||
Node: Redirections93102
|
||||
Node: Executing Commands102325
|
||||
Node: Simple Command Expansion102995
|
||||
Node: Command Search and Execution104925
|
||||
Node: Command Execution Environment107261
|
||||
Node: Environment110245
|
||||
Node: Exit Status111904
|
||||
Node: Signals113574
|
||||
Node: Shell Scripts115541
|
||||
Node: Shell Builtin Commands118056
|
||||
Node: Bourne Shell Builtins120090
|
||||
Node: Bash Builtins140692
|
||||
Node: Modifying Shell Behavior169168
|
||||
Node: The Set Builtin169513
|
||||
Node: The Shopt Builtin179926
|
||||
Node: Special Builtins195122
|
||||
Node: Shell Variables196101
|
||||
Node: Bourne Shell Variables196538
|
||||
Node: Bash Variables198569
|
||||
Node: Bash Features226175
|
||||
Node: Invoking Bash227074
|
||||
Node: Bash Startup Files233023
|
||||
Node: Interactive Shells238126
|
||||
Node: What is an Interactive Shell?238536
|
||||
Node: Is this Shell Interactive?239185
|
||||
Node: Interactive Shell Behavior240000
|
||||
Node: Bash Conditional Expressions243299
|
||||
Node: Shell Arithmetic247300
|
||||
Node: Aliases250077
|
||||
Node: Arrays252625
|
||||
Node: The Directory Stack257709
|
||||
Node: Directory Stack Builtins258493
|
||||
Node: Controlling the Prompt261461
|
||||
Node: The Restricted Shell264207
|
||||
Node: Bash POSIX Mode266032
|
||||
Node: Job Control275687
|
||||
Node: Job Control Basics276147
|
||||
Node: Job Control Builtins280866
|
||||
Node: Job Control Variables285385
|
||||
Node: Command Line Editing286541
|
||||
Node: Introduction and Notation288212
|
||||
Node: Readline Interaction289835
|
||||
Node: Readline Bare Essentials291026
|
||||
Node: Readline Movement Commands292809
|
||||
Node: Readline Killing Commands293769
|
||||
Node: Readline Arguments295687
|
||||
Node: Searching296731
|
||||
Node: Readline Init File298917
|
||||
Node: Readline Init File Syntax300064
|
||||
Node: Conditional Init Constructs319789
|
||||
Node: Sample Init File322314
|
||||
Node: Bindable Readline Commands325431
|
||||
Node: Commands For Moving326635
|
||||
Node: Commands For History327778
|
||||
Node: Commands For Text332067
|
||||
Node: Commands For Killing335456
|
||||
Node: Numeric Arguments337937
|
||||
Node: Commands For Completion339076
|
||||
Node: Keyboard Macros343267
|
||||
Node: Miscellaneous Commands343954
|
||||
Node: Readline vi Mode349758
|
||||
Node: Programmable Completion350665
|
||||
Node: Programmable Completion Builtins358126
|
||||
Node: A Programmable Completion Example368012
|
||||
Node: Using History Interactively373264
|
||||
Node: Bash History Facilities373948
|
||||
Node: Bash History Builtins376947
|
||||
Node: History Interaction380944
|
||||
Node: Event Designators383908
|
||||
Node: Word Designators385127
|
||||
Node: Modifiers386764
|
||||
Node: Installing Bash388166
|
||||
Node: Basic Installation389303
|
||||
Node: Compilers and Options391994
|
||||
Node: Compiling For Multiple Architectures392735
|
||||
Node: Installation Names394398
|
||||
Node: Specifying the System Type395216
|
||||
Node: Sharing Defaults395932
|
||||
Node: Operation Controls396605
|
||||
Node: Optional Features397563
|
||||
Node: Reporting Bugs407820
|
||||
Node: Major Differences From The Bourne Shell409014
|
||||
Node: GNU Free Documentation License425866
|
||||
Node: Indexes451043
|
||||
Node: Builtin Index451497
|
||||
Node: Reserved Word Index458324
|
||||
Node: Variable Index460772
|
||||
Node: Function Index476158
|
||||
Node: Concept Index489378
|
||||
|
||||
End Tag Table
|
||||
|
||||
+27
-11
@@ -1,4 +1,4 @@
|
||||
This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015/MacPorts 2015_3) (preloaded format=pdftex 2015.7.15) 2 OCT 2015 07:16
|
||||
This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015/MacPorts 2015_3) (preloaded format=pdftex 2015.7.15) 15 OCT 2015 10:11
|
||||
entering extended mode
|
||||
restricted \write18 enabled.
|
||||
%&-line parsing enabled.
|
||||
@@ -254,7 +254,7 @@ d@texttt ][]
|
||||
.etc.
|
||||
|
||||
[54] [55]
|
||||
Overfull \hbox (38.26584pt too wide) in paragraph at lines 4446--4446
|
||||
Overfull \hbox (38.26584pt too wide) in paragraph at lines 4444--4444
|
||||
[]@texttt readarray [-d @textttsl de-lim@texttt ] [-n @textttsl count@texttt ]
|
||||
[-O @textttsl ori-gin@texttt ] [-s @textttsl count@texttt ] [-t] [-u @textttsl
|
||||
fd@texttt ][]
|
||||
@@ -269,7 +269,7 @@ Overfull \hbox (38.26584pt too wide) in paragraph at lines 4446--4446
|
||||
|
||||
[56] [57] [58] [59] [60] [61] [62] [63] [64] [65] [66] [67] [68] Chapter 5
|
||||
[69] [70] [71] [72] [73] [74] [75] [76] [77] [78] [79] Chapter 6 [80]
|
||||
Overfull \hbox (49.43388pt too wide) in paragraph at lines 6118--6118
|
||||
Overfull \hbox (49.43388pt too wide) in paragraph at lines 6124--6124
|
||||
[]@texttt bash [long-opt] [-ir] [-abefhkmnptuvxdBCDHP] [-o @textttsl op-tion@t
|
||||
exttt ] [-O @textttsl shopt_option@texttt ] [@textttsl ar-
|
||||
|
||||
@@ -282,7 +282,7 @@ exttt ] [-O @textttsl shopt_option@texttt ] [@textttsl ar-
|
||||
.etc.
|
||||
|
||||
|
||||
Overfull \hbox (72.42863pt too wide) in paragraph at lines 6119--6119
|
||||
Overfull \hbox (72.42863pt too wide) in paragraph at lines 6125--6125
|
||||
[]@texttt bash [long-opt] [-abefhkmnptuvxdBCDHP] [-o @textttsl op-tion@texttt
|
||||
] [-O @textttsl shopt_option@texttt ] -c @textttsl string @texttt [@textttsl ar
|
||||
-
|
||||
@@ -296,7 +296,7 @@ Overfull \hbox (72.42863pt too wide) in paragraph at lines 6119--6119
|
||||
.etc.
|
||||
|
||||
|
||||
Overfull \hbox (32.18782pt too wide) in paragraph at lines 6120--6120
|
||||
Overfull \hbox (32.18782pt too wide) in paragraph at lines 6126--6126
|
||||
[]@texttt bash [long-opt] -s [-abefhkmnptuvxdBCDHP] [-o @textttsl op-tion@text
|
||||
tt ] [-O @textttsl shopt_option@texttt ] [@textttsl ar-
|
||||
|
||||
@@ -379,8 +379,8 @@ texinfo.tex: doing @include of fdl.texi
|
||||
(./fdl.texi [155] [156] [157] [158] [159] [160] [161])
|
||||
Appendix D [162] (./bashref.bts) [163] (./bashref.rws) (./bashref.vrs [164]
|
||||
[165]) (./bashref.fns
|
||||
Overfull \vbox (6.27478pt too high) has occurred while \output is active
|
||||
\vbox(43.69023+2.0)x207.80492
|
||||
Overfull \vbox (14.52478pt too high) has occurred while \output is active
|
||||
\vbox(35.44023+2.0)x207.80492
|
||||
.\glue(\topskip) 26.12001
|
||||
.\hbox(9.87999+0.0)x207.80492, glue set 195.57158fil
|
||||
..\secrm A
|
||||
@@ -391,11 +391,27 @@ Overfull \vbox (6.27478pt too high) has occurred while \output is active
|
||||
.etc.
|
||||
|
||||
|
||||
Overfull \vbox (0.55977pt too high) has occurred while \output is active
|
||||
\vbox(35.44023+2.0)x207.80492
|
||||
.\glue(\splittopskip) 29.75
|
||||
.\hbox(6.25+2.0)x207.80492, glue set 40.04836fill
|
||||
..\smalltt a
|
||||
..\smalltt c
|
||||
..\smalltt c
|
||||
..\smalltt e
|
||||
..\smalltt p
|
||||
..etc.
|
||||
.\mark{\gdef \thischaptername {Indexes}\gdef \thischapternum {D}\gdef \thischap
|
||||
ter \ETC.}
|
||||
.\mark{\gdef \thischaptername {Indexes}\gdef \thischapternum {D}\gdef \thischap
|
||||
ter \ETC.}
|
||||
|
||||
|
||||
[166] [167]) (./bashref.cps [168] [169]) [170] )
|
||||
Here is how much of TeX's memory you used:
|
||||
2747 strings out of 497110
|
||||
37302 string characters out of 6206875
|
||||
156142 words of memory out of 5000000
|
||||
156623 words of memory out of 5000000
|
||||
3523 multiletter control sequences out of 15000+600000
|
||||
32896 words of font info for 113 fonts, out of 8000000 for 9000
|
||||
51 hyphenation exceptions out of 8191
|
||||
@@ -416,10 +432,10 @@ are/texmf-texlive/fonts/type1/public/amsfonts/cm/cmtt10.pfb></opt/local/share/t
|
||||
exmf-texlive/fonts/type1/public/amsfonts/cm/cmtt12.pfb></opt/local/share/texmf-
|
||||
texlive/fonts/type1/public/amsfonts/cm/cmtt9.pfb></opt/local/share/texmf-texliv
|
||||
e/fonts/type1/public/cm-super/sfrm1095.pfb>
|
||||
Output written on bashref.pdf (176 pages, 729961 bytes).
|
||||
Output written on bashref.pdf (176 pages, 730163 bytes).
|
||||
PDF statistics:
|
||||
2557 PDF objects out of 2984 (max. 8388607)
|
||||
2337 compressed objects within 24 object streams
|
||||
2560 PDF objects out of 2984 (max. 8388607)
|
||||
2340 compressed objects within 24 object streams
|
||||
302 named destinations out of 1000 (max. 500000)
|
||||
1125 words of extra memory for PDF output out of 10000 (max. 10000000)
|
||||
|
||||
|
||||
Binary file not shown.
+390
-383
File diff suppressed because it is too large
Load Diff
+8
-6
@@ -4311,10 +4311,8 @@ interprets the following extensions:
|
||||
@table @code
|
||||
@item %b
|
||||
Causes @code{printf} to expand backslash escape sequences in the
|
||||
corresponding @var{argument},
|
||||
except that @samp{\c} terminates output, backslashes in
|
||||
@samp{\'}, @samp{\"}, and @samp{\?} are not removed, and octal escapes
|
||||
beginning with @samp{\0} may contain up to four digits.
|
||||
corresponding @var{argument} in the same way as @code{echo -e}
|
||||
(@pxref{Bash Builtins}).
|
||||
@item %q
|
||||
Causes @code{printf} to output the
|
||||
corresponding @var{argument} in a format that can be reused as shell input.
|
||||
@@ -5069,9 +5067,13 @@ expansion using quote removal.
|
||||
@item compat43
|
||||
If set, Bash
|
||||
does not print a warning message if an attempt is made to use a quoted compound
|
||||
array assignment as an argument to @code{declare}, and makes word expansion errors
|
||||
array assignment as an argument to @code{declare},
|
||||
makes word expansion errors
|
||||
non-fatal errors that cause the current command to fail (the default behavior is
|
||||
to make them fatal errors that cause the shell to exit).
|
||||
to make them fatal errors that cause the shell to exit),
|
||||
and does not reset the
|
||||
loop state when a shell function is executed (this allows @code{break} or
|
||||
@code{continue} in a shell function to affect loops in the caller's context).
|
||||
|
||||
@item complete_fullquote
|
||||
If set, Bash
|
||||
|
||||
+3
-2
@@ -89,8 +89,9 @@
|
||||
\entry{LC_CTYPE}{77}{\code {LC_CTYPE}}
|
||||
\entry{LC_MESSAGES}{77}{\code {LC_MESSAGES}}
|
||||
\entry{LC_NUMERIC}{77}{\code {LC_NUMERIC}}
|
||||
\entry{LC_TIME}{77}{\code {LC_TIME}}
|
||||
\entry{LINENO}{77}{\code {LINENO}}
|
||||
\entry{LINES}{77}{\code {LINES}}
|
||||
\entry{LINES}{78}{\code {LINES}}
|
||||
\entry{MACHTYPE}{78}{\code {MACHTYPE}}
|
||||
\entry{MAILCHECK}{78}{\code {MAILCHECK}}
|
||||
\entry{MAPFILE}{78}{\code {MAPFILE}}
|
||||
@@ -103,7 +104,7 @@
|
||||
\entry{PROMPT_COMMAND}{78}{\code {PROMPT_COMMAND}}
|
||||
\entry{PROMPT_DIRTRIM}{78}{\code {PROMPT_DIRTRIM}}
|
||||
\entry{PS3}{78}{\code {PS3}}
|
||||
\entry{PS4}{78}{\code {PS4}}
|
||||
\entry{PS4}{79}{\code {PS4}}
|
||||
\entry{PWD}{79}{\code {PWD}}
|
||||
\entry{RANDOM}{79}{\code {RANDOM}}
|
||||
\entry{READLINE_LINE}{79}{\code {READLINE_LINE}}
|
||||
|
||||
+3
-2
@@ -125,8 +125,9 @@
|
||||
\entry {\code {LC_CTYPE}}{77}
|
||||
\entry {\code {LC_MESSAGES}}{7, 77}
|
||||
\entry {\code {LC_NUMERIC}}{77}
|
||||
\entry {\code {LC_TIME}}{77}
|
||||
\entry {\code {LINENO}}{77}
|
||||
\entry {\code {LINES}}{77}
|
||||
\entry {\code {LINES}}{78}
|
||||
\initial {M}
|
||||
\entry {\code {MACHTYPE}}{78}
|
||||
\entry {\code {MAIL}}{70}
|
||||
@@ -156,7 +157,7 @@
|
||||
\entry {\code {PS1}}{70}
|
||||
\entry {\code {PS2}}{70}
|
||||
\entry {\code {PS3}}{78}
|
||||
\entry {\code {PS4}}{78}
|
||||
\entry {\code {PS4}}{79}
|
||||
\entry {\code {PWD}}{79}
|
||||
\initial {R}
|
||||
\entry {\code {RANDOM}}{79}
|
||||
|
||||
+183
-182
@@ -875,9 +875,7 @@ BBAASSHH BBUUIILLTTIINN CCOOMMMMAANNDDSS
|
||||
addition to the standard _p_r_i_n_t_f(1) format specifications, pprriinnttff
|
||||
interprets the following extensions:
|
||||
%%bb causes pprriinnttff to expand backslash escape sequences in the
|
||||
corresponding _a_r_g_u_m_e_n_t (except that \\cc terminates output,
|
||||
backslashes in \\'', \\"", and \\?? are not removed, and octal
|
||||
escapes beginning with \\00 may contain up to four digits).
|
||||
corresponding _a_r_g_u_m_e_n_t in the same way as eecchhoo --ee.
|
||||
%%qq causes pprriinnttff to output the corresponding _a_r_g_u_m_e_n_t in a
|
||||
format that can be reused as shell input.
|
||||
%%((_d_a_t_e_f_m_t))TT
|
||||
@@ -1346,158 +1344,161 @@ BBAASSHH BBUUIILLTTIINN CCOOMMMMAANNDDSS
|
||||
ccoommppaatt4433
|
||||
If set, bbaasshh does not print a warning message if an
|
||||
attempt is made to use a quoted compound array assign-
|
||||
ment as an argument to ddeeccllaarree, and makes word expansion
|
||||
ment as an argument to ddeeccllaarree, makes word expansion
|
||||
errors non-fatal errors that cause the current command
|
||||
to fail (the default behavior is to make them fatal
|
||||
errors that cause the shell to exit).
|
||||
errors that cause the shell to exit), and does not reset
|
||||
the loop state when a shell function is executed (this
|
||||
allows bbrreeaakk or ccoonnttiinnuuee in a shell function to affect
|
||||
loops in the caller's context).
|
||||
ccoommpplleettee__ffuullllqquuoottee
|
||||
If set, bbaasshh quotes all shell metacharacters in file-
|
||||
names and directory names when performing completion.
|
||||
If set, bbaasshh quotes all shell metacharacters in file-
|
||||
names and directory names when performing completion.
|
||||
If not set, bbaasshh removes metacharacters such as the dol-
|
||||
lar sign from the set of characters that will be quoted
|
||||
in completed filenames when these metacharacters appear
|
||||
in shell variable references in words to be completed.
|
||||
This means that dollar signs in variable names that
|
||||
expand to directories will not be quoted; however, any
|
||||
dollar signs appearing in filenames will not be quoted,
|
||||
either. This is active only when bash is using back-
|
||||
slashes to quote completed filenames. This variable is
|
||||
set by default, which is the default bash behavior in
|
||||
lar sign from the set of characters that will be quoted
|
||||
in completed filenames when these metacharacters appear
|
||||
in shell variable references in words to be completed.
|
||||
This means that dollar signs in variable names that
|
||||
expand to directories will not be quoted; however, any
|
||||
dollar signs appearing in filenames will not be quoted,
|
||||
either. This is active only when bash is using back-
|
||||
slashes to quote completed filenames. This variable is
|
||||
set by default, which is the default bash behavior in
|
||||
versions through 4.2.
|
||||
ddiirreexxppaanndd
|
||||
If set, bbaasshh replaces directory names with the results
|
||||
of word expansion when performing filename completion.
|
||||
This changes the contents of the readline editing buf-
|
||||
fer. If not set, bbaasshh attempts to preserve what the
|
||||
If set, bbaasshh replaces directory names with the results
|
||||
of word expansion when performing filename completion.
|
||||
This changes the contents of the readline editing buf-
|
||||
fer. If not set, bbaasshh attempts to preserve what the
|
||||
user typed.
|
||||
ddiirrssppeellll
|
||||
If set, bbaasshh attempts spelling correction on directory
|
||||
names during word completion if the directory name ini-
|
||||
If set, bbaasshh attempts spelling correction on directory
|
||||
names during word completion if the directory name ini-
|
||||
tially supplied does not exist.
|
||||
ddoottgglloobb If set, bbaasshh includes filenames beginning with a `.' in
|
||||
ddoottgglloobb If set, bbaasshh includes filenames beginning with a `.' in
|
||||
the results of pathname expansion.
|
||||
eexxeeccffaaiill
|
||||
If set, a non-interactive shell will not exit if it can-
|
||||
not execute the file specified as an argument to the
|
||||
eexxeecc builtin command. An interactive shell does not
|
||||
not execute the file specified as an argument to the
|
||||
eexxeecc builtin command. An interactive shell does not
|
||||
exit if eexxeecc fails.
|
||||
eexxppaanndd__aalliiaasseess
|
||||
If set, aliases are expanded as described above under
|
||||
If set, aliases are expanded as described above under
|
||||
AALLIIAASSEESS. This option is enabled by default for interac-
|
||||
tive shells.
|
||||
eexxttddeebbuugg
|
||||
If set, behavior intended for use by debuggers is
|
||||
If set, behavior intended for use by debuggers is
|
||||
enabled:
|
||||
11.. The --FF option to the ddeeccllaarree builtin displays the
|
||||
source file name and line number corresponding to
|
||||
each function name supplied as an argument.
|
||||
22.. If the command run by the DDEEBBUUGG trap returns a
|
||||
non-zero value, the next command is skipped and
|
||||
22.. If the command run by the DDEEBBUUGG trap returns a
|
||||
non-zero value, the next command is skipped and
|
||||
not executed.
|
||||
33.. If the command run by the DDEEBBUUGG trap returns a
|
||||
value of 2, and the shell is executing in a sub-
|
||||
routine (a shell function or a shell script exe-
|
||||
cuted by the .. or ssoouurrccee builtins), the shell
|
||||
33.. If the command run by the DDEEBBUUGG trap returns a
|
||||
value of 2, and the shell is executing in a sub-
|
||||
routine (a shell function or a shell script exe-
|
||||
cuted by the .. or ssoouurrccee builtins), the shell
|
||||
simulates a call to rreettuurrnn.
|
||||
44.. BBAASSHH__AARRGGCC and BBAASSHH__AARRGGVV are updated as described
|
||||
44.. BBAASSHH__AARRGGCC and BBAASSHH__AARRGGVV are updated as described
|
||||
in their descriptions above.
|
||||
55.. Function tracing is enabled: command substitu-
|
||||
55.. Function tracing is enabled: command substitu-
|
||||
tion, shell functions, and subshells invoked with
|
||||
(( _c_o_m_m_a_n_d )) inherit the DDEEBBUUGG and RREETTUURRNN traps.
|
||||
66.. Error tracing is enabled: command substitution,
|
||||
shell functions, and subshells invoked with ((
|
||||
66.. Error tracing is enabled: command substitution,
|
||||
shell functions, and subshells invoked with ((
|
||||
_c_o_m_m_a_n_d )) inherit the EERRRR trap.
|
||||
eexxttgglloobb If set, the extended pattern matching features described
|
||||
above under PPaatthhnnaammee EExxppaannssiioonn are enabled.
|
||||
eexxttqquuoottee
|
||||
If set, $$'_s_t_r_i_n_g' and $$"_s_t_r_i_n_g" quoting is performed
|
||||
within $${{_p_a_r_a_m_e_t_e_r}} expansions enclosed in double
|
||||
If set, $$'_s_t_r_i_n_g' and $$"_s_t_r_i_n_g" quoting is performed
|
||||
within $${{_p_a_r_a_m_e_t_e_r}} expansions enclosed in double
|
||||
quotes. This option is enabled by default.
|
||||
ffaaiillgglloobb
|
||||
If set, patterns which fail to match filenames during
|
||||
If set, patterns which fail to match filenames during
|
||||
pathname expansion result in an expansion error.
|
||||
ffoorrccee__ffiiggnnoorree
|
||||
If set, the suffixes specified by the FFIIGGNNOORREE shell
|
||||
variable cause words to be ignored when performing word
|
||||
If set, the suffixes specified by the FFIIGGNNOORREE shell
|
||||
variable cause words to be ignored when performing word
|
||||
completion even if the ignored words are the only possi-
|
||||
ble completions. See SSHHEELLLL VVAARRIIAABBLLEESS above for a
|
||||
description of FFIIGGNNOORREE. This option is enabled by
|
||||
description of FFIIGGNNOORREE. This option is enabled by
|
||||
default.
|
||||
gglloobbaasscciiiirraannggeess
|
||||
If set, range expressions used in pattern matching
|
||||
bracket expressions (see PPaatttteerrnn MMaattcchhiinngg above) behave
|
||||
as if in the traditional C locale when performing com-
|
||||
If set, range expressions used in pattern matching
|
||||
bracket expressions (see PPaatttteerrnn MMaattcchhiinngg above) behave
|
||||
as if in the traditional C locale when performing com-
|
||||
parisons. That is, the current locale's collating
|
||||
sequence is not taken into account, so bb will not col-
|
||||
late between AA and BB, and upper-case and lower-case
|
||||
sequence is not taken into account, so bb will not col-
|
||||
late between AA and BB, and upper-case and lower-case
|
||||
ASCII characters will collate together.
|
||||
gglloobbssttaarr
|
||||
If set, the pattern **** used in a pathname expansion con-
|
||||
text will match all files and zero or more directories
|
||||
and subdirectories. If the pattern is followed by a //,
|
||||
text will match all files and zero or more directories
|
||||
and subdirectories. If the pattern is followed by a //,
|
||||
only directories and subdirectories match.
|
||||
ggnnuu__eerrrrffmmtt
|
||||
If set, shell error messages are written in the standard
|
||||
GNU error message format.
|
||||
hhiissttaappppeenndd
|
||||
If set, the history list is appended to the file named
|
||||
by the value of the HHIISSTTFFIILLEE variable when the shell
|
||||
If set, the history list is appended to the file named
|
||||
by the value of the HHIISSTTFFIILLEE variable when the shell
|
||||
exits, rather than overwriting the file.
|
||||
hhiissttrreeeeddiitt
|
||||
If set, and rreeaaddlliinnee is being used, a user is given the
|
||||
If set, and rreeaaddlliinnee is being used, a user is given the
|
||||
opportunity to re-edit a failed history substitution.
|
||||
hhiissttvveerriiffyy
|
||||
If set, and rreeaaddlliinnee is being used, the results of his-
|
||||
tory substitution are not immediately passed to the
|
||||
shell parser. Instead, the resulting line is loaded
|
||||
If set, and rreeaaddlliinnee is being used, the results of his-
|
||||
tory substitution are not immediately passed to the
|
||||
shell parser. Instead, the resulting line is loaded
|
||||
into the rreeaaddlliinnee editing buffer, allowing further modi-
|
||||
fication.
|
||||
hhoossttccoommpplleettee
|
||||
If set, and rreeaaddlliinnee is being used, bbaasshh will attempt to
|
||||
perform hostname completion when a word containing a @@
|
||||
is being completed (see CCoommpplleettiinngg under RREEAADDLLIINNEE
|
||||
perform hostname completion when a word containing a @@
|
||||
is being completed (see CCoommpplleettiinngg under RREEAADDLLIINNEE
|
||||
above). This is enabled by default.
|
||||
hhuuppoonneexxiitt
|
||||
If set, bbaasshh will send SSIIGGHHUUPP to all jobs when an inter-
|
||||
active login shell exits.
|
||||
iinntteerraaccttiivvee__ccoommmmeennttss
|
||||
If set, allow a word beginning with ## to cause that word
|
||||
and all remaining characters on that line to be ignored
|
||||
in an interactive shell (see CCOOMMMMEENNTTSS above). This
|
||||
and all remaining characters on that line to be ignored
|
||||
in an interactive shell (see CCOOMMMMEENNTTSS above). This
|
||||
option is enabled by default.
|
||||
llaassttppiippee
|
||||
If set, and job control is not active, the shell runs
|
||||
If set, and job control is not active, the shell runs
|
||||
the last command of a pipeline not executed in the back-
|
||||
ground in the current shell environment.
|
||||
lliitthhiisstt If set, and the ccmmddhhiisstt option is enabled, multi-line
|
||||
lliitthhiisstt If set, and the ccmmddhhiisstt option is enabled, multi-line
|
||||
commands are saved to the history with embedded newlines
|
||||
rather than using semicolon separators where possible.
|
||||
llooggiinn__sshheellll
|
||||
The shell sets this option if it is started as a login
|
||||
shell (see IINNVVOOCCAATTIIOONN above). The value may not be
|
||||
The shell sets this option if it is started as a login
|
||||
shell (see IINNVVOOCCAATTIIOONN above). The value may not be
|
||||
changed.
|
||||
mmaaiillwwaarrnn
|
||||
If set, and a file that bbaasshh is checking for mail has
|
||||
been accessed since the last time it was checked, the
|
||||
message ``The mail in _m_a_i_l_f_i_l_e has been read'' is dis-
|
||||
If set, and a file that bbaasshh is checking for mail has
|
||||
been accessed since the last time it was checked, the
|
||||
message ``The mail in _m_a_i_l_f_i_l_e has been read'' is dis-
|
||||
played.
|
||||
nnoo__eemmppttyy__ccmmdd__ccoommpplleettiioonn
|
||||
If set, and rreeaaddlliinnee is being used, bbaasshh will not
|
||||
If set, and rreeaaddlliinnee is being used, bbaasshh will not
|
||||
attempt to search the PPAATTHH for possible completions when
|
||||
completion is attempted on an empty line.
|
||||
nnooccaasseegglloobb
|
||||
If set, bbaasshh matches filenames in a case-insensitive
|
||||
If set, bbaasshh matches filenames in a case-insensitive
|
||||
fashion when performing pathname expansion (see PPaatthhnnaammee
|
||||
EExxppaannssiioonn above).
|
||||
nnooccaasseemmaattcchh
|
||||
If set, bbaasshh matches patterns in a case-insensitive
|
||||
If set, bbaasshh matches patterns in a case-insensitive
|
||||
fashion when performing matching while executing ccaassee or
|
||||
[[[[ conditional commands, when performing pattern substi-
|
||||
tution word expansions, or when filtering possible com-
|
||||
tution word expansions, or when filtering possible com-
|
||||
pletions as part of programmable completion.
|
||||
nnuullllgglloobb
|
||||
If set, bbaasshh allows patterns which match no files (see
|
||||
PPaatthhnnaammee EExxppaannssiioonn above) to expand to a null string,
|
||||
If set, bbaasshh allows patterns which match no files (see
|
||||
PPaatthhnnaammee EExxppaannssiioonn above) to expand to a null string,
|
||||
rather than themselves.
|
||||
pprrooggccoommpp
|
||||
If set, the programmable completion facilities (see PPrroo--
|
||||
@@ -1505,50 +1506,50 @@ BBAASSHH BBUUIILLTTIINN CCOOMMMMAANNDDSS
|
||||
enabled by default.
|
||||
pprroommppttvvaarrss
|
||||
If set, prompt strings undergo parameter expansion, com-
|
||||
mand substitution, arithmetic expansion, and quote
|
||||
removal after being expanded as described in PPRROOMMPPTTIINNGG
|
||||
mand substitution, arithmetic expansion, and quote
|
||||
removal after being expanded as described in PPRROOMMPPTTIINNGG
|
||||
above. This option is enabled by default.
|
||||
rreessttrriicctteedd__sshheellll
|
||||
The shell sets this option if it is started in
|
||||
The shell sets this option if it is started in
|
||||
restricted mode (see RREESSTTRRIICCTTEEDD SSHHEELLLL below). The value
|
||||
may not be changed. This is not reset when the startup
|
||||
files are executed, allowing the startup files to dis-
|
||||
may not be changed. This is not reset when the startup
|
||||
files are executed, allowing the startup files to dis-
|
||||
cover whether or not a shell is restricted.
|
||||
sshhiifftt__vveerrbboossee
|
||||
If set, the sshhiifftt builtin prints an error message when
|
||||
If set, the sshhiifftt builtin prints an error message when
|
||||
the shift count exceeds the number of positional parame-
|
||||
ters.
|
||||
ssoouurrcceeppaatthh
|
||||
If set, the ssoouurrccee (..) builtin uses the value of PPAATTHH to
|
||||
find the directory containing the file supplied as an
|
||||
find the directory containing the file supplied as an
|
||||
argument. This option is enabled by default.
|
||||
xxppgg__eecchhoo
|
||||
If set, the eecchhoo builtin expands backslash-escape
|
||||
If set, the eecchhoo builtin expands backslash-escape
|
||||
sequences by default.
|
||||
|
||||
ssuussppeenndd [--ff]
|
||||
Suspend the execution of this shell until it receives a SSIIGGCCOONNTT
|
||||
Suspend the execution of this shell until it receives a SSIIGGCCOONNTT
|
||||
signal. A login shell cannot be suspended; the --ff option can be
|
||||
used to override this and force the suspension. The return sta-
|
||||
tus is 0 unless the shell is a login shell and --ff is not sup-
|
||||
tus is 0 unless the shell is a login shell and --ff is not sup-
|
||||
plied, or if job control is not enabled.
|
||||
|
||||
tteesstt _e_x_p_r
|
||||
[[ _e_x_p_r ]]
|
||||
Return a status of 0 (true) or 1 (false) depending on the evalu-
|
||||
ation of the conditional expression _e_x_p_r. Each operator and op-
|
||||
erand must be a separate argument. Expressions are composed of
|
||||
the primaries described above under CCOONNDDIITTIIOONNAALL EEXXPPRREESSSSIIOONNSS.
|
||||
tteesstt does not accept any options, nor does it accept and ignore
|
||||
erand must be a separate argument. Expressions are composed of
|
||||
the primaries described above under CCOONNDDIITTIIOONNAALL EEXXPPRREESSSSIIOONNSS.
|
||||
tteesstt does not accept any options, nor does it accept and ignore
|
||||
an argument of ---- as signifying the end of options.
|
||||
|
||||
Expressions may be combined using the following operators,
|
||||
Expressions may be combined using the following operators,
|
||||
listed in decreasing order of precedence. The evaluation
|
||||
depends on the number of arguments; see below. Operator prece-
|
||||
depends on the number of arguments; see below. Operator prece-
|
||||
dence is used when there are five or more arguments.
|
||||
!! _e_x_p_r True if _e_x_p_r is false.
|
||||
(( _e_x_p_r ))
|
||||
Returns the value of _e_x_p_r. This may be used to override
|
||||
Returns the value of _e_x_p_r. This may be used to override
|
||||
the normal precedence of operators.
|
||||
_e_x_p_r_1 -aa _e_x_p_r_2
|
||||
True if both _e_x_p_r_1 and _e_x_p_r_2 are true.
|
||||
@@ -1565,120 +1566,120 @@ BBAASSHH BBUUIILLTTIINN CCOOMMMMAANNDDSS
|
||||
null.
|
||||
2 arguments
|
||||
If the first argument is !!, the expression is true if and
|
||||
only if the second argument is null. If the first argu-
|
||||
ment is one of the unary conditional operators listed
|
||||
above under CCOONNDDIITTIIOONNAALL EEXXPPRREESSSSIIOONNSS, the expression is
|
||||
only if the second argument is null. If the first argu-
|
||||
ment is one of the unary conditional operators listed
|
||||
above under CCOONNDDIITTIIOONNAALL EEXXPPRREESSSSIIOONNSS, the expression is
|
||||
true if the unary test is true. If the first argument is
|
||||
not a valid unary conditional operator, the expression is
|
||||
false.
|
||||
3 arguments
|
||||
The following conditions are applied in the order listed.
|
||||
If the second argument is one of the binary conditional
|
||||
If the second argument is one of the binary conditional
|
||||
operators listed above under CCOONNDDIITTIIOONNAALL EEXXPPRREESSSSIIOONNSS, the
|
||||
result of the expression is the result of the binary test
|
||||
using the first and third arguments as operands. The --aa
|
||||
and --oo operators are considered binary operators when
|
||||
there are three arguments. If the first argument is !!,
|
||||
the value is the negation of the two-argument test using
|
||||
using the first and third arguments as operands. The --aa
|
||||
and --oo operators are considered binary operators when
|
||||
there are three arguments. If the first argument is !!,
|
||||
the value is the negation of the two-argument test using
|
||||
the second and third arguments. If the first argument is
|
||||
exactly (( and the third argument is exactly )), the result
|
||||
is the one-argument test of the second argument. Other-
|
||||
is the one-argument test of the second argument. Other-
|
||||
wise, the expression is false.
|
||||
4 arguments
|
||||
If the first argument is !!, the result is the negation of
|
||||
the three-argument expression composed of the remaining
|
||||
the three-argument expression composed of the remaining
|
||||
arguments. Otherwise, the expression is parsed and eval-
|
||||
uated according to precedence using the rules listed
|
||||
uated according to precedence using the rules listed
|
||||
above.
|
||||
5 or more arguments
|
||||
The expression is parsed and evaluated according to
|
||||
The expression is parsed and evaluated according to
|
||||
precedence using the rules listed above.
|
||||
|
||||
When used with tteesstt or [[, the << and >> operators sort lexico-
|
||||
When used with tteesstt or [[, the << and >> operators sort lexico-
|
||||
graphically using ASCII ordering.
|
||||
|
||||
ttiimmeess Print the accumulated user and system times for the shell and
|
||||
ttiimmeess Print the accumulated user and system times for the shell and
|
||||
for processes run from the shell. The return status is 0.
|
||||
|
||||
ttrraapp [--llpp] [[_a_r_g] _s_i_g_s_p_e_c ...]
|
||||
The command _a_r_g is to be read and executed when the shell
|
||||
receives signal(s) _s_i_g_s_p_e_c. If _a_r_g is absent (and there is a
|
||||
single _s_i_g_s_p_e_c) or --, each specified signal is reset to its
|
||||
original disposition (the value it had upon entrance to the
|
||||
shell). If _a_r_g is the null string the signal specified by each
|
||||
_s_i_g_s_p_e_c is ignored by the shell and by the commands it invokes.
|
||||
If _a_r_g is not present and --pp has been supplied, then the trap
|
||||
commands associated with each _s_i_g_s_p_e_c are displayed. If no
|
||||
arguments are supplied or if only --pp is given, ttrraapp prints the
|
||||
list of commands associated with each signal. The --ll option
|
||||
causes the shell to print a list of signal names and their cor-
|
||||
responding numbers. Each _s_i_g_s_p_e_c is either a signal name
|
||||
defined in <_s_i_g_n_a_l_._h>, or a signal number. Signal names are
|
||||
The command _a_r_g is to be read and executed when the shell
|
||||
receives signal(s) _s_i_g_s_p_e_c. If _a_r_g is absent (and there is a
|
||||
single _s_i_g_s_p_e_c) or --, each specified signal is reset to its
|
||||
original disposition (the value it had upon entrance to the
|
||||
shell). If _a_r_g is the null string the signal specified by each
|
||||
_s_i_g_s_p_e_c is ignored by the shell and by the commands it invokes.
|
||||
If _a_r_g is not present and --pp has been supplied, then the trap
|
||||
commands associated with each _s_i_g_s_p_e_c are displayed. If no
|
||||
arguments are supplied or if only --pp is given, ttrraapp prints the
|
||||
list of commands associated with each signal. The --ll option
|
||||
causes the shell to print a list of signal names and their cor-
|
||||
responding numbers. Each _s_i_g_s_p_e_c is either a signal name
|
||||
defined in <_s_i_g_n_a_l_._h>, or a signal number. Signal names are
|
||||
case insensitive and the SSIIGG prefix is optional.
|
||||
|
||||
If a _s_i_g_s_p_e_c is EEXXIITT (0) the command _a_r_g is executed on exit
|
||||
from the shell. If a _s_i_g_s_p_e_c is DDEEBBUUGG, the command _a_r_g is exe-
|
||||
cuted before every _s_i_m_p_l_e _c_o_m_m_a_n_d, _f_o_r command, _c_a_s_e command,
|
||||
_s_e_l_e_c_t command, every arithmetic _f_o_r command, and before the
|
||||
first command executes in a shell function (see SSHHEELLLL GGRRAAMMMMAARR
|
||||
above). Refer to the description of the eexxttddeebbuugg option to the
|
||||
If a _s_i_g_s_p_e_c is EEXXIITT (0) the command _a_r_g is executed on exit
|
||||
from the shell. If a _s_i_g_s_p_e_c is DDEEBBUUGG, the command _a_r_g is exe-
|
||||
cuted before every _s_i_m_p_l_e _c_o_m_m_a_n_d, _f_o_r command, _c_a_s_e command,
|
||||
_s_e_l_e_c_t command, every arithmetic _f_o_r command, and before the
|
||||
first command executes in a shell function (see SSHHEELLLL GGRRAAMMMMAARR
|
||||
above). Refer to the description of the eexxttddeebbuugg option to the
|
||||
sshhoopptt builtin for details of its effect on the DDEEBBUUGG trap. If a
|
||||
_s_i_g_s_p_e_c is RREETTUURRNN, the command _a_r_g is executed each time a shell
|
||||
function or a script executed with the .. or ssoouurrccee builtins fin-
|
||||
ishes executing.
|
||||
|
||||
If a _s_i_g_s_p_e_c is EERRRR, the command _a_r_g is executed whenever a a
|
||||
If a _s_i_g_s_p_e_c is EERRRR, the command _a_r_g is executed whenever a a
|
||||
pipeline (which may consist of a single simple command), a list,
|
||||
or a compound command returns a non-zero exit status, subject to
|
||||
the following conditions. The EERRRR trap is not executed if the
|
||||
the following conditions. The EERRRR trap is not executed if the
|
||||
failed command is part of the command list immediately following
|
||||
a wwhhiillee or uunnttiill keyword, part of the test in an _i_f statement,
|
||||
a wwhhiillee or uunnttiill keyword, part of the test in an _i_f statement,
|
||||
part of a command executed in a &&&& or |||| list except the command
|
||||
following the final &&&& or ||||, any command in a pipeline but the
|
||||
last, or if the command's return value is being inverted using
|
||||
!!. These are the same conditions obeyed by the eerrrreexxiitt (--ee)
|
||||
following the final &&&& or ||||, any command in a pipeline but the
|
||||
last, or if the command's return value is being inverted using
|
||||
!!. These are the same conditions obeyed by the eerrrreexxiitt (--ee)
|
||||
option.
|
||||
|
||||
Signals ignored upon entry to the shell cannot be trapped or
|
||||
reset. Trapped signals that are not being ignored are reset to
|
||||
Signals ignored upon entry to the shell cannot be trapped or
|
||||
reset. Trapped signals that are not being ignored are reset to
|
||||
their original values in a subshell or subshell environment when
|
||||
one is created. The return status is false if any _s_i_g_s_p_e_c is
|
||||
one is created. The return status is false if any _s_i_g_s_p_e_c is
|
||||
invalid; otherwise ttrraapp returns true.
|
||||
|
||||
ttyyppee [--aaffttppPP] _n_a_m_e [_n_a_m_e ...]
|
||||
With no options, indicate how each _n_a_m_e would be interpreted if
|
||||
With no options, indicate how each _n_a_m_e would be interpreted if
|
||||
used as a command name. If the --tt option is used, ttyyppee prints a
|
||||
string which is one of _a_l_i_a_s, _k_e_y_w_o_r_d, _f_u_n_c_t_i_o_n, _b_u_i_l_t_i_n, or
|
||||
_f_i_l_e if _n_a_m_e is an alias, shell reserved word, function,
|
||||
builtin, or disk file, respectively. If the _n_a_m_e is not found,
|
||||
then nothing is printed, and an exit status of false is
|
||||
returned. If the --pp option is used, ttyyppee either returns the
|
||||
string which is one of _a_l_i_a_s, _k_e_y_w_o_r_d, _f_u_n_c_t_i_o_n, _b_u_i_l_t_i_n, or
|
||||
_f_i_l_e if _n_a_m_e is an alias, shell reserved word, function,
|
||||
builtin, or disk file, respectively. If the _n_a_m_e is not found,
|
||||
then nothing is printed, and an exit status of false is
|
||||
returned. If the --pp option is used, ttyyppee either returns the
|
||||
name of the disk file that would be executed if _n_a_m_e were speci-
|
||||
fied as a command name, or nothing if ``type -t name'' would not
|
||||
return _f_i_l_e. The --PP option forces a PPAATTHH search for each _n_a_m_e,
|
||||
return _f_i_l_e. The --PP option forces a PPAATTHH search for each _n_a_m_e,
|
||||
even if ``type -t name'' would not return _f_i_l_e. If a command is
|
||||
hashed, --pp and --PP print the hashed value, which is not necessar-
|
||||
ily the file that appears first in PPAATTHH. If the --aa option is
|
||||
used, ttyyppee prints all of the places that contain an executable
|
||||
ily the file that appears first in PPAATTHH. If the --aa option is
|
||||
used, ttyyppee prints all of the places that contain an executable
|
||||
named _n_a_m_e. This includes aliases and functions, if and only if
|
||||
the --pp option is not also used. The table of hashed commands is
|
||||
not consulted when using --aa. The --ff option suppresses shell
|
||||
not consulted when using --aa. The --ff option suppresses shell
|
||||
function lookup, as with the ccoommmmaanndd builtin. ttyyppee returns true
|
||||
if all of the arguments are found, false if any are not found.
|
||||
|
||||
uulliimmiitt [--HHSSaabbccddeeffiikkllmmnnppqqrrssttuuvvxxPPTT [_l_i_m_i_t]]
|
||||
Provides control over the resources available to the shell and
|
||||
to processes started by it, on systems that allow such control.
|
||||
Provides control over the resources available to the shell and
|
||||
to processes started by it, on systems that allow such control.
|
||||
The --HH and --SS options specify that the hard or soft limit is set
|
||||
for the given resource. A hard limit cannot be increased by a
|
||||
non-root user once it is set; a soft limit may be increased up
|
||||
to the value of the hard limit. If neither --HH nor --SS is speci-
|
||||
for the given resource. A hard limit cannot be increased by a
|
||||
non-root user once it is set; a soft limit may be increased up
|
||||
to the value of the hard limit. If neither --HH nor --SS is speci-
|
||||
fied, both the soft and hard limits are set. The value of _l_i_m_i_t
|
||||
can be a number in the unit specified for the resource or one of
|
||||
the special values hhaarrdd, ssoofftt, or uunnlliimmiitteedd, which stand for the
|
||||
current hard limit, the current soft limit, and no limit,
|
||||
respectively. If _l_i_m_i_t is omitted, the current value of the
|
||||
soft limit of the resource is printed, unless the --HH option is
|
||||
current hard limit, the current soft limit, and no limit,
|
||||
respectively. If _l_i_m_i_t is omitted, the current value of the
|
||||
soft limit of the resource is printed, unless the --HH option is
|
||||
given. When more than one resource is specified, the limit name
|
||||
and unit are printed before the value. Other options are inter-
|
||||
preted as follows:
|
||||
@@ -1687,12 +1688,12 @@ BBAASSHH BBUUIILLTTIINN CCOOMMMMAANNDDSS
|
||||
--cc The maximum size of core files created
|
||||
--dd The maximum size of a process's data segment
|
||||
--ee The maximum scheduling priority ("nice")
|
||||
--ff The maximum size of files written by the shell and its
|
||||
--ff The maximum size of files written by the shell and its
|
||||
children
|
||||
--ii The maximum number of pending signals
|
||||
--kk The maximum number of kqueues that may be allocated
|
||||
--ll The maximum size that may be locked into memory
|
||||
--mm The maximum resident set size (many systems do not honor
|
||||
--mm The maximum resident set size (many systems do not honor
|
||||
this limit)
|
||||
--nn The maximum number of open file descriptors (most systems
|
||||
do not allow this value to be set)
|
||||
@@ -1701,53 +1702,53 @@ BBAASSHH BBUUIILLTTIINN CCOOMMMMAANNDDSS
|
||||
--rr The maximum real-time scheduling priority
|
||||
--ss The maximum stack size
|
||||
--tt The maximum amount of cpu time in seconds
|
||||
--uu The maximum number of processes available to a single
|
||||
--uu The maximum number of processes available to a single
|
||||
user
|
||||
--vv The maximum amount of virtual memory available to the
|
||||
--vv The maximum amount of virtual memory available to the
|
||||
shell and, on some systems, to its children
|
||||
--xx The maximum number of file locks
|
||||
--PP The maximum number of pseudoterminals
|
||||
--TT The maximum number of threads
|
||||
|
||||
If _l_i_m_i_t is given, and the --aa option is not used, _l_i_m_i_t is the
|
||||
new value of the specified resource. If no option is given,
|
||||
then --ff is assumed. Values are in 1024-byte increments, except
|
||||
for --tt, which is in seconds; --pp, which is in units of 512-byte
|
||||
blocks; --PP, --TT, --bb, --kk, --nn, and --uu, which are unscaled values;
|
||||
If _l_i_m_i_t is given, and the --aa option is not used, _l_i_m_i_t is the
|
||||
new value of the specified resource. If no option is given,
|
||||
then --ff is assumed. Values are in 1024-byte increments, except
|
||||
for --tt, which is in seconds; --pp, which is in units of 512-byte
|
||||
blocks; --PP, --TT, --bb, --kk, --nn, and --uu, which are unscaled values;
|
||||
and, when in Posix mode, --cc and --ff, which are in 512-byte incre-
|
||||
ments. The return status is 0 unless an invalid option or argu-
|
||||
ment is supplied, or an error occurs while setting a new limit.
|
||||
|
||||
uummaasskk [--pp] [--SS] [_m_o_d_e]
|
||||
The user file-creation mask is set to _m_o_d_e. If _m_o_d_e begins with
|
||||
a digit, it is interpreted as an octal number; otherwise it is
|
||||
interpreted as a symbolic mode mask similar to that accepted by
|
||||
_c_h_m_o_d(1). If _m_o_d_e is omitted, the current value of the mask is
|
||||
printed. The --SS option causes the mask to be printed in sym-
|
||||
bolic form; the default output is an octal number. If the --pp
|
||||
a digit, it is interpreted as an octal number; otherwise it is
|
||||
interpreted as a symbolic mode mask similar to that accepted by
|
||||
_c_h_m_o_d(1). If _m_o_d_e is omitted, the current value of the mask is
|
||||
printed. The --SS option causes the mask to be printed in sym-
|
||||
bolic form; the default output is an octal number. If the --pp
|
||||
option is supplied, and _m_o_d_e is omitted, the output is in a form
|
||||
that may be reused as input. The return status is 0 if the mode
|
||||
was successfully changed or if no _m_o_d_e argument was supplied,
|
||||
was successfully changed or if no _m_o_d_e argument was supplied,
|
||||
and false otherwise.
|
||||
|
||||
uunnaalliiaass [-aa] [_n_a_m_e ...]
|
||||
Remove each _n_a_m_e from the list of defined aliases. If --aa is
|
||||
supplied, all alias definitions are removed. The return value
|
||||
Remove each _n_a_m_e from the list of defined aliases. If --aa is
|
||||
supplied, all alias definitions are removed. The return value
|
||||
is true unless a supplied _n_a_m_e is not a defined alias.
|
||||
|
||||
uunnsseett [-ffvv] [-nn] [_n_a_m_e ...]
|
||||
For each _n_a_m_e, remove the corresponding variable or function.
|
||||
For each _n_a_m_e, remove the corresponding variable or function.
|
||||
If the --vv option is given, each _n_a_m_e refers to a shell variable,
|
||||
and that variable is removed. Read-only variables may not be
|
||||
unset. If --ff is specified, each _n_a_m_e refers to a shell func-
|
||||
tion, and the function definition is removed. If the --nn option
|
||||
is supplied, and _n_a_m_e is a variable with the _n_a_m_e_r_e_f attribute,
|
||||
_n_a_m_e will be unset rather than the variable it references. --nn
|
||||
has no effect if the --ff option is supplied. If no options are
|
||||
supplied, each _n_a_m_e refers to a variable; if there is no vari-
|
||||
able by that name, any function with that name is unset. Each
|
||||
unset variable or function is removed from the environment
|
||||
passed to subsequent commands. If any of CCOOMMPP__WWOORRDDBBRREEAAKKSS, RRAANN--
|
||||
and that variable is removed. Read-only variables may not be
|
||||
unset. If --ff is specified, each _n_a_m_e refers to a shell func-
|
||||
tion, and the function definition is removed. If the --nn option
|
||||
is supplied, and _n_a_m_e is a variable with the _n_a_m_e_r_e_f attribute,
|
||||
_n_a_m_e will be unset rather than the variable it references. --nn
|
||||
has no effect if the --ff option is supplied. If no options are
|
||||
supplied, each _n_a_m_e refers to a variable; if there is no vari-
|
||||
able by that name, any function with that name is unset. Each
|
||||
unset variable or function is removed from the environment
|
||||
passed to subsequent commands. If any of CCOOMMPP__WWOORRDDBBRREEAAKKSS, RRAANN--
|
||||
DDOOMM, SSEECCOONNDDSS, LLIINNEENNOO, HHIISSTTCCMMDD, FFUUNNCCNNAAMMEE, GGRROOUUPPSS, or DDIIRRSSTTAACCKK are
|
||||
unset, they lose their special properties, even if they are sub-
|
||||
sequently reset. The exit status is true unless a _n_a_m_e is read-
|
||||
@@ -1756,12 +1757,12 @@ BBAASSHH BBUUIILLTTIINN CCOOMMMMAANNDDSS
|
||||
wwaaiitt [--nn] [_n _._._.]
|
||||
Wait for each specified child process and return its termination
|
||||
status. Each _n may be a process ID or a job specification; if a
|
||||
job spec is given, all processes in that job's pipeline are
|
||||
waited for. If _n is not given, all currently active child pro-
|
||||
job spec is given, all processes in that job's pipeline are
|
||||
waited for. If _n is not given, all currently active child pro-
|
||||
cesses are waited for, and the return status is zero. If the --nn
|
||||
option is supplied, wwaaiitt waits for any job to terminate and
|
||||
returns its exit status. If _n specifies a non-existent process
|
||||
or job, the return status is 127. Otherwise, the return status
|
||||
option is supplied, wwaaiitt waits for any job to terminate and
|
||||
returns its exit status. If _n specifies a non-existent process
|
||||
or job, the return status is 127. Otherwise, the return status
|
||||
is the exit status of the last process or job waited for.
|
||||
|
||||
SSEEEE AALLSSOO
|
||||
|
||||
+864
-863
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -1,6 +1,6 @@
|
||||
%!PS-Adobe-3.0
|
||||
%%Creator: groff version 1.22.3
|
||||
%%CreationDate: Fri Oct 2 07:16:22 2015
|
||||
%%CreationDate: Wed Oct 14 11:38:11 2015
|
||||
%%DocumentNeededResources: font Times-Roman
|
||||
%%+ font Times-Bold
|
||||
%%DocumentSuppliedResources: procset grops 1.22 3
|
||||
|
||||
+2
-2
@@ -2,10 +2,10 @@
|
||||
Copyright (C) 1988-2015 Free Software Foundation, Inc.
|
||||
@end ignore
|
||||
|
||||
@set LASTCHANGE Mon Oct 5 14:32:19 EDT 2015
|
||||
@set LASTCHANGE Tue Oct 13 17:03:11 EDT 2015
|
||||
|
||||
@set EDITION 4.4
|
||||
@set VERSION 4.4
|
||||
|
||||
@set UPDATED 5 October 2015
|
||||
@set UPDATED 13 October 2015
|
||||
@set UPDATED-MONTH October 2015
|
||||
|
||||
+2
-1
@@ -4678,7 +4678,8 @@ execute_function (var, words, flags, fds_to_close, async, subshell)
|
||||
stop_pipeline (async, (COMMAND *)NULL);
|
||||
#endif
|
||||
|
||||
loop_level = 0;
|
||||
if (shell_compatibility_level > 43)
|
||||
loop_level = 0;
|
||||
|
||||
fc = tc;
|
||||
|
||||
|
||||
@@ -580,13 +580,13 @@ rl_redisplay ()
|
||||
int inv_botlin, lb_botlin, lb_linenum, o_cpos;
|
||||
int newlines, lpos, temp, n0, num, prompt_lines_estimate;
|
||||
char *prompt_this_line;
|
||||
int mb_cur_max = MB_CUR_MAX;
|
||||
#if defined (HANDLE_MULTIBYTE)
|
||||
wchar_t wc;
|
||||
size_t wc_bytes;
|
||||
int wc_width;
|
||||
mbstate_t ps;
|
||||
int _rl_wrapped_multicolumn = 0;
|
||||
int mb_cur_max = MB_CUR_MAX;
|
||||
#endif
|
||||
|
||||
if (_rl_echoing_p == 0)
|
||||
@@ -1029,9 +1029,11 @@ rl_redisplay ()
|
||||
not the first. */
|
||||
if (out >= _rl_screenchars)
|
||||
{
|
||||
#if defined (HANDLE_MULTIBYTE)
|
||||
if (mb_cur_max > 1 && rl_byte_oriented == 0)
|
||||
out = _rl_find_prev_mbchar (line, _rl_screenchars, MB_FIND_ANY);
|
||||
else
|
||||
#endif
|
||||
out = _rl_screenchars - 1;
|
||||
}
|
||||
|
||||
|
||||
+2
-1
@@ -109,10 +109,11 @@ sh_modcase (string, pat, flags)
|
||||
int inword, c, nc, nop, match, usewords;
|
||||
char *ret, *s;
|
||||
wchar_t wc;
|
||||
int mb_cur_max;
|
||||
#if defined (HANDLE_MULTIBYTE)
|
||||
wchar_t nwc;
|
||||
char mb[MB_LEN_MAX+1];
|
||||
int mlen, mb_cur_max;
|
||||
int mlen;
|
||||
size_t m;
|
||||
mbstate_t state;
|
||||
#endif
|
||||
|
||||
@@ -4808,6 +4808,12 @@ array_var_assignment (v, itype, quoted)
|
||||
val[1] = ')';
|
||||
val[2] = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
ret = (quoted & (Q_DOUBLE_QUOTES|Q_HERE_DOCUMENT)) ? quote_string (val) : quote_escapes (val);
|
||||
free (val);
|
||||
val = ret;
|
||||
}
|
||||
i = var_attribute_string (v, 0, flags);
|
||||
ret = (char *)xmalloc (i + strlen (val) + strlen (v->name) + 16);
|
||||
sprintf (ret, "declare -%s %s=%s", flags, v->name, val);
|
||||
|
||||
+1
-1
@@ -80,9 +80,9 @@ man2html$(EXEEXT): $(OBJ1)
|
||||
|
||||
clean:
|
||||
$(RM) man2html$(EXEEXT)
|
||||
$(RM) bash.pc
|
||||
|
||||
distclean maintainer-clean mostlyclean: clean
|
||||
$(RM) $(OBJ1)
|
||||
$(RM) bash.pc
|
||||
|
||||
man2html.o: man2html.c
|
||||
|
||||
+5
-2
@@ -3,7 +3,10 @@
|
||||
: ${TMPDIR:=/tmp}
|
||||
export TMPDIR
|
||||
|
||||
BASH_TSTOUT=/tmp/xx # for now
|
||||
# basic /bin/sh syntax
|
||||
SUFFIX=`${THIS_SH} -c 'echo $(( $RANDOM + $BASHPID ))'`
|
||||
|
||||
BASH_TSTOUT=${TMPDIR}/bashtst-$SUFFIX # for now
|
||||
export BASH_TSTOUT
|
||||
|
||||
trap 'rm -f $BASH_TSTOUT' 0
|
||||
@@ -30,7 +33,7 @@ do
|
||||
case $x in
|
||||
$0|run-minimal|run-gprof) ;;
|
||||
*.orig|*~) ;;
|
||||
*) echo $x ; sh $x ;;
|
||||
*) echo $x ; sh $x ; rm -f ${BASH_TSTOUT} ;;
|
||||
esac
|
||||
done
|
||||
|
||||
|
||||
+5
-1
@@ -7,7 +7,10 @@
|
||||
: ${TMPDIR:=/tmp}
|
||||
export TMPDIR
|
||||
|
||||
BASH_TSTOUT=/tmp/xx # for now
|
||||
# basic /bin/sh syntax
|
||||
SUFFIX=`${THIS_SH} -c 'echo $(( $RANDOM + $BASHPID ))'`
|
||||
|
||||
BASH_TSTOUT=${TMPDIR}/bashtst-$SUFFIX # for now
|
||||
export BASH_TSTOUT
|
||||
|
||||
trap 'rm -f $BASH_TSTOUT' 0
|
||||
@@ -40,6 +43,7 @@ do
|
||||
run-precedence|run-quote|run-read|run-rhs-exp|run-strip|run-tilde) echo $x ; sh $x ;;
|
||||
*) ;;
|
||||
esac
|
||||
rm -f "$BASH_TSTOUT"
|
||||
done
|
||||
|
||||
exit 0
|
||||
|
||||
@@ -641,6 +641,8 @@ initialize_shell_variables (env, privmode)
|
||||
if (temp_var && imported_p (temp_var))
|
||||
sv_xtracefd (temp_var->name);
|
||||
|
||||
sv_shcompat ("BASH_COMPAT");
|
||||
|
||||
/* Initialize the dynamic variables, and seed their values. */
|
||||
initialize_dynamic_variables ();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user