mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-06-29 08:29:54 +02:00
commit bash-20091112 snapshot
This commit is contained in:
+8
-1
@@ -8141,7 +8141,7 @@ lib/readline/display.c
|
||||
|
||||
6/5
|
||||
---
|
||||
doc/{bash.1,bashref.texi
|
||||
doc/{bash.1,bashref.texi}
|
||||
- added some more explanation of the inheritance of the ERR trap at
|
||||
the suggestion of Thomas Pospisek <tpo@sourcepole.ch>
|
||||
|
||||
@@ -9153,3 +9153,10 @@ variables.c
|
||||
by AJ Slater <aj.slater@gmail.com>
|
||||
|
||||
[bash-4.1-beta frozen]
|
||||
|
||||
11/11
|
||||
-----
|
||||
builtins/printf.def
|
||||
- in getintmax(), in the case of a conversion error, return the partial
|
||||
value accumulated so far, which is suppose to be what
|
||||
strtoimax/strtoll/strtol returns
|
||||
|
||||
-9155
File diff suppressed because it is too large
Load Diff
Symlink
+1
@@ -0,0 +1 @@
|
||||
CWRU.chlog
|
||||
+3
-1
@@ -1004,7 +1004,9 @@ getintmax ()
|
||||
shall continue processing any remaining operands and shall write the
|
||||
value accumulated at the time the error was detected to standard
|
||||
output.'' Yecch. */
|
||||
ret = 0;
|
||||
#if 0
|
||||
ret = 0; /* return partially-converted value from strtoimax */
|
||||
#endif
|
||||
conversion_error = 1;
|
||||
}
|
||||
else if (errno == ERANGE)
|
||||
|
||||
+983
-979
File diff suppressed because it is too large
Load Diff
+11
-5
@@ -3,7 +3,7 @@
|
||||
</HEAD>
|
||||
<BODY><TABLE WIDTH=100%>
|
||||
<TR>
|
||||
<TH ALIGN=LEFT width=33%>BASH(1)<TH ALIGN=CENTER width=33%>2009 October 9<TH ALIGN=RIGHT width=33%>BASH(1)
|
||||
<TH ALIGN=LEFT width=33%>BASH(1)<TH ALIGN=CENTER width=33%>2009 October 16<TH ALIGN=RIGHT width=33%>BASH(1)
|
||||
</TR>
|
||||
</TABLE>
|
||||
<BR><A HREF="#index">Index</A>
|
||||
@@ -4935,6 +4935,11 @@ Unless otherwise specified, primaries that operate on files follow symbolic
|
||||
links and operate on the target of the link, rather than the link itself.
|
||||
<P>
|
||||
|
||||
|
||||
When used with <B>[[</B>, The <B><</B> and <B>></B> operators sort
|
||||
lexicographically using the current locale.
|
||||
<P>
|
||||
|
||||
<DL COMPACT>
|
||||
<DT><B>-a </B><I>file</I>
|
||||
|
||||
@@ -9978,7 +9983,7 @@ Exit a login shell.
|
||||
|
||||
<DT><B>readarray</B> [<B>-n</B> <I>count</I>] [<B>-O</B> <I>origin</I>] [<B>-s</B> <I>count</I>] [<B>-t</B>] [<B>-u</B> <I>fd</I>] [<B>-C</B> <I>callback</I>] [<B>-c</B> <I>quantum</I>] [<I>array</I>]<DD>
|
||||
|
||||
Read lines from the standard input into array variable
|
||||
Read lines from the standard input into the indexed array variable
|
||||
<I>array</I>,
|
||||
|
||||
or from file descriptor
|
||||
@@ -10059,7 +10064,8 @@ before assigning to it.
|
||||
<P>
|
||||
|
||||
<B>mapfile</B> returns successfully unless an invalid option or option
|
||||
argument is supplied, or <I>array</I> is invalid or unassignable.
|
||||
argument is supplied, <I>array</I> is invalid or unassignable, or if
|
||||
<I>array</I> is not an indexed array.
|
||||
</DL>
|
||||
|
||||
<DT><B>popd</B> [-<B>n</B>] [+<I>n</I>] [-<I>n</I>]<DD>
|
||||
@@ -12255,7 +12261,7 @@ There may be only one active coprocess at a time.
|
||||
<HR>
|
||||
<TABLE WIDTH=100%>
|
||||
<TR>
|
||||
<TH ALIGN=LEFT width=33%>GNU Bash-4.1<TH ALIGN=CENTER width=33%>2009 October 9<TH ALIGN=RIGHT width=33%>BASH(1)
|
||||
<TH ALIGN=LEFT width=33%>GNU Bash-4.1<TH ALIGN=CENTER width=33%>2009 October 16<TH ALIGN=RIGHT width=33%>BASH(1)
|
||||
</TR>
|
||||
</TABLE>
|
||||
<HR>
|
||||
@@ -12361,6 +12367,6 @@ There may be only one active coprocess at a time.
|
||||
</DL>
|
||||
<HR>
|
||||
This document was created by man2html from bash.1.<BR>
|
||||
Time: 12 October 2009 10:07:29 EDT
|
||||
Time: 09 November 2009 14:08:09 EST
|
||||
</BODY>
|
||||
</HTML>
|
||||
|
||||
Binary file not shown.
+165
-158
@@ -1,6 +1,6 @@
|
||||
%!PS-Adobe-3.0
|
||||
%%Creator: groff version 1.19.2
|
||||
%%CreationDate: Mon Oct 12 10:07:24 2009
|
||||
%%CreationDate: Mon Nov 9 14:08:04 2009
|
||||
%%DocumentNeededResources: font Times-Roman
|
||||
%%+ font Times-Bold
|
||||
%%+ font Times-Italic
|
||||
@@ -331,7 +331,7 @@ E F2(po)2.5 E F0(\(portable object\) \214le format.)2.5 E F2
|
||||
144 686.4 Q .3 -.15(ve \()-.25 H(see).15 E F4(INV)2.5 E(OCA)-.405 E
|
||||
(TION)-.855 E F0(belo)2.25 E(w\).)-.25 E F2(\255\255login)108 703.2 Q F0
|
||||
(Equi)144 715.2 Q -.25(va)-.25 G(lent to).25 E F2<ad6c>2.5 E F0(.)A
|
||||
(GNU Bash-4.1)72 768 Q(2009 October 9)142.905 E(1)197.895 E 0 Cg EP
|
||||
(GNU Bash-4.1)72 768 Q(2009 October 16)140.405 E(1)195.395 E 0 Cg EP
|
||||
%%Page: 2 2
|
||||
%%BeginPageSetup
|
||||
BP
|
||||
@@ -453,7 +453,7 @@ F(ariable)-.25 E F3 -.27(BA)108 679.2 S(SH_ENV).27 E F0 1.01(in the en)
|
||||
108 727.2 S 2.5(tt).2 G(he v)-2.5 E(alue of the)-.25 E F3 -.666(PA)2.5 G
|
||||
(TH)-.189 E F0 -.25(va)2.25 G
|
||||
(riable is not used to search for the \214le name.).25 E(GNU Bash-4.1)72
|
||||
768 Q(2009 October 9)142.905 E(2)197.895 E 0 Cg EP
|
||||
768 Q(2009 October 16)140.405 E(2)195.395 E 0 Cg EP
|
||||
%%Page: 3 3
|
||||
%%BeginPageSetup
|
||||
BP
|
||||
@@ -581,7 +581,7 @@ F1(Pipelines)87 691.2 Q F0(A)108 703.2 Q F2(pipeline)2.996 E F0 .496(is\
|
||||
a sequence of one or more commands separated by one of the control ope\
|
||||
rators)2.996 F F1(|)2.996 E F0(or)2.996 E F1(|&)2.996 E F0 5.496(.T)C
|
||||
(he)-5.496 E(format for a pipeline is:)108 715.2 Q(GNU Bash-4.1)72 768 Q
|
||||
(2009 October 9)142.905 E(3)197.895 E 0 Cg EP
|
||||
(2009 October 16)140.405 E(3)195.395 E 0 Cg EP
|
||||
%%Page: 4 4
|
||||
%%BeginPageSetup
|
||||
BP
|
||||
@@ -701,7 +701,7 @@ E(\(\()108 703.2 Q F2 -.2(ex)C(pr).2 E(ession)-.37 E F0(\)\))A(The)144
|
||||
(A-)-.54 E(TION)144 727.2 Q/F5 9/Times-Roman@0 SF(.)A F0 .411(If the v)
|
||||
4.911 F .411(alue of the e)-.25 F .411(xpression is non-zero, the retur\
|
||||
n status is 0; otherwise the return status)-.15 F(GNU Bash-4.1)72 768 Q
|
||||
(2009 October 9)142.905 E(4)197.895 E 0 Cg EP
|
||||
(2009 October 16)140.405 E(4)195.395 E 0 Cg EP
|
||||
%%Page: 5 5
|
||||
%%BeginPageSetup
|
||||
BP
|
||||
@@ -837,7 +837,7 @@ F2(list)3.092 E F0 .592(is e)3.092 F -.15(xe)-.15 G .592
|
||||
(alue is the e)-.25 F .227(xit status of the last command in)-.15 F F2
|
||||
(list)2.728 E F0 .228(that is e)2.728 F -.15(xe)-.15 G .228(cuted, or f)
|
||||
.15 F .228(alse if an)-.1 F 2.728(yo)-.15 G 2.728(ft)-2.728 G(he)-2.728
|
||||
E(GNU Bash-4.1)72 768 Q(2009 October 9)142.905 E(5)197.895 E 0 Cg EP
|
||||
E(GNU Bash-4.1)72 768 Q(2009 October 16)140.405 E(5)195.395 E 0 Cg EP
|
||||
%%Page: 6 6
|
||||
%%BeginPageSetup
|
||||
BP
|
||||
@@ -987,7 +987,7 @@ F .511(xt of the e)-.15 F -.15(xe)-.15 G .511(cuting shell.).15 F .511
|
||||
(and redirections using standard w)108 722.4 R 1.982(ord e)-.1 F 4.481
|
||||
(xpansions. The)-.15 F 1.981(process id of the shell spa)4.481 F 1.981
|
||||
(wned to e)-.15 F -.15(xe)-.15 G 1.981(cute the).15 F(GNU Bash-4.1)72
|
||||
768 Q(2009 October 9)142.905 E(6)197.895 E 0 Cg EP
|
||||
768 Q(2009 October 16)140.405 E(6)195.395 E 0 Cg EP
|
||||
%%Page: 7 7
|
||||
%%BeginPageSetup
|
||||
BP
|
||||
@@ -1115,8 +1115,8 @@ F0(and)2.5 E F2(@)2.5 E F0(ha)2.5 E .3 -.15(ve s)-.2 H
|
||||
.212(ith backslash-escaped char)-2.712 F(-)-.2 E .605
|
||||
(acters replaced as speci\214ed by the ANSI C standard.)108 698.4 R .604
|
||||
(Backslash escape sequences, if present, are decoded)5.605 F(as follo)
|
||||
108 710.4 Q(ws:)-.25 E(GNU Bash-4.1)72 768 Q(2009 October 9)142.905 E(7)
|
||||
197.895 E 0 Cg EP
|
||||
108 710.4 Q(ws:)-.25 E(GNU Bash-4.1)72 768 Q(2009 October 16)140.405 E
|
||||
(7)195.395 E 0 Cg EP
|
||||
%%Page: 8 8
|
||||
%%BeginPageSetup
|
||||
BP
|
||||
@@ -1230,7 +1230,7 @@ F4(FUNCTIONS)2.834 E F0(belo)2.584 E(w\).)-.25 E 1.404(When a positiona\
|
||||
l parameter consisting of more than a single digit is e)108 684 R 1.403
|
||||
(xpanded, it must be enclosed in)-.15 F(braces \(see)108 696 Q F4(EXP)
|
||||
2.5 E(ANSION)-.666 E F0(belo)2.25 E(w\).)-.25 E(GNU Bash-4.1)72 768 Q
|
||||
(2009 October 9)142.905 E(8)197.895 E 0 Cg EP
|
||||
(2009 October 16)140.405 E(8)195.395 E 0 Cg EP
|
||||
%%Page: 9 9
|
||||
%%BeginPageSetup
|
||||
BP
|
||||
@@ -1354,8 +1354,8 @@ n or script)5.535 F -.15(exe)144 681.6 S .141(cuted with).15 F F1(.)
|
||||
(only when in)4.024 F -.15(ex)144 705.6 S(tended deb).15 E
|
||||
(ugging mode \(see the description of the)-.2 E F1(extdeb)2.5 E(ug)-.2 E
|
||||
F0(option to the)2.5 E F1(shopt)2.5 E F0 -.2(bu)2.5 G(iltin belo).2 E
|
||||
(w\))-.25 E(GNU Bash-4.1)72 768 Q(2009 October 9)142.905 E(9)197.895 E 0
|
||||
Cg EP
|
||||
(w\))-.25 E(GNU Bash-4.1)72 768 Q(2009 October 16)140.405 E(9)195.395 E
|
||||
0 Cg EP
|
||||
%%Page: 10 10
|
||||
%%BeginPageSetup
|
||||
BP
|
||||
@@ -1453,7 +1453,7 @@ E F0(belo)2.5 E(w\).)-.25 E F1(COMP_KEY)108 668.4 Q F0(The k)144 680.4 Q
|
||||
2.848(mands in)144 721.2 R -.2(vo)-.4 G -.1(ke).2 G 5.349(db).1 G 5.349
|
||||
(yt)-5.349 G 2.849(he programmable completion f)-5.349 F 2.849
|
||||
(acilities \(see)-.1 F F1(Pr)5.349 E 2.849(ogrammable Completion)-.18 F
|
||||
F0(GNU Bash-4.1)72 768 Q(2009 October 9)142.905 E(10)192.895 E 0 Cg EP
|
||||
F0(GNU Bash-4.1)72 768 Q(2009 October 16)140.405 E(10)190.395 E 0 Cg EP
|
||||
%%Page: 11 11
|
||||
%%BeginPageSetup
|
||||
BP
|
||||
@@ -1562,7 +1562,7 @@ E .597(ments to)144 590.4 R F3(GR)3.097 E(OUPS)-.27 E F0(ha)2.847 E .897
|
||||
ly describes the type of machine on which)144 700.8 R F1(bash)2.722 E F0
|
||||
.222(is e)2.722 F -.15(xe)-.15 G(cut-).15 E 2.5(ing. The)144 712.8 R
|
||||
(def)2.5 E(ault is system-dependent.)-.1 E(GNU Bash-4.1)72 768 Q
|
||||
(2009 October 9)142.905 E(11)192.895 E 0 Cg EP
|
||||
(2009 October 16)140.405 E(11)190.395 E 0 Cg EP
|
||||
%%Page: 12 12
|
||||
%%BeginPageSetup
|
||||
BP
|
||||
@@ -1648,8 +1648,8 @@ E(.)-.65 E .994(The follo)108 684 R .994(wing v)-.25 F .994
|
||||
(ariables are used by the shell.)-.25 F .994(In some cases,)5.994 F F1
|
||||
(bash)3.494 E F0 .994(assigns a def)3.494 F .994(ault v)-.1 F .993
|
||||
(alue to a v)-.25 F(ariable;)-.25 E(these cases are noted belo)108 696 Q
|
||||
-.65(w.)-.25 G(GNU Bash-4.1)72 768 Q(2009 October 9)142.905 E(12)192.895
|
||||
E 0 Cg EP
|
||||
-.65(w.)-.25 G(GNU Bash-4.1)72 768 Q(2009 October 16)140.405 E(12)
|
||||
190.395 E 0 Cg EP
|
||||
%%Page: 13 13
|
||||
%%BeginPageSetup
|
||||
BP
|
||||
@@ -1764,8 +1764,8 @@ A F1(HISTFILE)108 624 Q F0 .181
|
||||
-.1 F .602(alue is 500.)-.25 F .602
|
||||
(The history \214le is also truncated to this size)5.602 F
|
||||
(after writing it when an interacti)144 708 Q .3 -.15(ve s)-.25 H
|
||||
(hell e).15 E(xits.)-.15 E(GNU Bash-4.1)72 768 Q(2009 October 9)142.905
|
||||
E(13)192.895 E 0 Cg EP
|
||||
(hell e).15 E(xits.)-.15 E(GNU Bash-4.1)72 768 Q(2009 October 16)140.405
|
||||
E(13)190.395 E 0 Cg EP
|
||||
%%Page: 14 14
|
||||
%%BeginPageSetup
|
||||
BP
|
||||
@@ -1871,7 +1871,7 @@ ble-quoted strings preceded by a)-.25 E F1($)2.5 E F0(.)A F1(LC_NUMERIC)
|
||||
(Used by the)5.99 F F1(select)3.719 E F0 -.2(bu)3.719 G 1.218(iltin com\
|
||||
mand to determine the column length for printing selection lists.).2 F
|
||||
(Automatically set upon receipt of a SIGWINCH.)144 720 Q(GNU Bash-4.1)72
|
||||
768 Q(2009 October 9)142.905 E(14)192.895 E 0 Cg EP
|
||||
768 Q(2009 October 16)140.405 E(14)190.395 E 0 Cg EP
|
||||
%%Page: 15 15
|
||||
%%BeginPageSetup
|
||||
BP
|
||||
@@ -1984,7 +1984,7 @@ G(ogin shell.)-2.5 E F1(TIMEFORMA)108 636 Q(T)-.95 E F0 .827(The v)144
|
||||
(ws; the braces denote optional portions.)-.25 E F1(%%)144 702 Q F0 2.5
|
||||
(Al)30 G(iteral)-2.5 E F1(%)2.5 E F0(.)A F1(%[)144 714 Q F4(p)A F1
|
||||
(][l]R)A F0(The elapsed time in seconds.)11.68 E(GNU Bash-4.1)72 768 Q
|
||||
(2009 October 9)142.905 E(15)192.895 E 0 Cg EP
|
||||
(2009 October 16)140.405 E(15)190.395 E 0 Cg EP
|
||||
%%Page: 16 16
|
||||
%%BeginPageSetup
|
||||
BP
|
||||
@@ -2106,7 +2106,7 @@ E F2(subscript)3.522 E F0 .682(is treated as an arithmetic e)3.862 F
|
||||
G 3.249(da).15 G(rray)-3.249 E 3.249(,u)-.65 G(se)-3.249 E F1(declar)
|
||||
3.249 E 3.249<65ad>-.18 G(a)-3.249 E F2(name)3.249 E F0(\(see)3.25 E F3
|
||||
.75(SHELL B)3.25 F(UIL)-.09 E(TIN)-.828 E F0(GNU Bash-4.1)72 768 Q
|
||||
(2009 October 9)142.905 E(16)192.895 E 0 Cg EP
|
||||
(2009 October 16)140.405 E(16)190.395 E 0 Cg EP
|
||||
%%Page: 17 17
|
||||
%%BeginPageSetup
|
||||
BP
|
||||
@@ -2244,7 +2244,7 @@ F(xpres-)-.15 E .563(sion between a pair of braces, follo)108 703.2 R
|
||||
.563(he preamble is pre\214x)-5.563 F .563(ed to each string)-.15 F .659
|
||||
(contained within the braces, and the postscript is then appended to ea\
|
||||
ch resulting string, e)108 715.2 R .658(xpanding left to)-.15 F(right.)
|
||||
108 727.2 Q(GNU Bash-4.1)72 768 Q(2009 October 9)142.905 E(17)192.895 E
|
||||
108 727.2 Q(GNU Bash-4.1)72 768 Q(2009 October 16)140.405 E(17)190.395 E
|
||||
0 Cg EP
|
||||
%%Page: 18 18
|
||||
%%BeginPageSetup
|
||||
@@ -2381,7 +2381,7 @@ F1($)A F0 4.105('c)C 1.605(haracter introduces parameter e)-4.105 F
|
||||
(tect the v)108 724.8 R .032(ariable to be e)-.25 F .032
|
||||
(xpanded from characters immediately follo)-.15 F .033
|
||||
(wing it which could be interpreted as part)-.25 F(GNU Bash-4.1)72 768 Q
|
||||
(2009 October 9)142.905 E(18)192.895 E 0 Cg EP
|
||||
(2009 October 16)140.405 E(18)190.395 E 0 Cg EP
|
||||
%%Page: 19 19
|
||||
%%BeginPageSetup
|
||||
BP
|
||||
@@ -2511,7 +2511,7 @@ F0 3.783(]}. A)B(ne)3.783 E -.05(ga)-.15 G(ti).05 E -.15(ve)-.25 G F2
|
||||
(is used and the e)2.757 F .257(xpansion appears)-.15 F
|
||||
(within double quotes, each v)144 729.6 Q(ariable name e)-.25 E
|
||||
(xpands to a separate w)-.15 E(ord.)-.1 E(GNU Bash-4.1)72 768 Q
|
||||
(2009 October 9)142.905 E(19)192.895 E 0 Cg EP
|
||||
(2009 October 16)140.405 E(19)190.395 E 0 Cg EP
|
||||
%%Page: 20 20
|
||||
%%BeginPageSetup
|
||||
BP
|
||||
@@ -2653,7 +2653,7 @@ r in turn, and the e)144 684 R 1.335(xpansion is the)-.15 F 1.308
|
||||
(he case modi\214cation)-3.808 F
|
||||
(operation is applied to each member of the array in turn, and the e)144
|
||||
708 Q(xpansion is the resultant list.)-.15 E(GNU Bash-4.1)72 768 Q
|
||||
(2009 October 9)142.905 E(20)192.895 E 0 Cg EP
|
||||
(2009 October 16)140.405 E(20)190.395 E 0 Cg EP
|
||||
%%Page: 21 21
|
||||
%%BeginPageSetup
|
||||
BP
|
||||
@@ -2771,7 +2771,7 @@ F0(is null, no w)2.25 E(ord splitting occurs.)-.1 E 1.878
|
||||
(or)3.545 E F1 .833<0808>5.211 G F0 4.378(\)a)C 1.878(re retained.)
|
||||
-4.378 F 1.878(Unquoted implicit null ar)6.878 F 1.879
|
||||
(guments, resulting from the)-.18 F(GNU Bash-4.1)72 768 Q
|
||||
(2009 October 9)142.905 E(21)192.895 E 0 Cg EP
|
||||
(2009 October 16)140.405 E(21)190.395 E 0 Cg EP
|
||||
%%Page: 22 22
|
||||
%%BeginPageSetup
|
||||
BP
|
||||
@@ -2907,7 +2907,7 @@ e collation weight \(as de\214ned by the current locale\) as the charac\
|
||||
ter)144 705.6 Q F2(c)2.5 E F0(.)A -.4(Wi)144 723.6 S(thin).4 E F1([)2.5
|
||||
E F0(and)2.5 E F1(])2.5 E F0 2.5(,t)C(he syntax)-2.5 E F1([.)2.5 E F2
|
||||
(symbol)A F1(.])A F0(matches the collating symbol)2.5 E F2(symbol)2.5 E
|
||||
F0(.)A(GNU Bash-4.1)72 768 Q(2009 October 9)142.905 E(22)192.895 E 0 Cg
|
||||
F0(.)A(GNU Bash-4.1)72 768 Q(2009 October 16)140.405 E(22)190.395 E 0 Cg
|
||||
EP
|
||||
%%Page: 23 23
|
||||
%%BeginPageSetup
|
||||
@@ -2998,7 +2998,7 @@ E F1(/de)144 657.6 Q(v/stdin)-.15 E F0(File descriptor 0 is duplicated.)
|
||||
180 669.6 Q F1(/de)144 681.6 Q(v/stdout)-.15 E F0
|
||||
(File descriptor 1 is duplicated.)180 693.6 Q F1(/de)144 705.6 Q
|
||||
(v/stderr)-.15 E F0(File descriptor 2 is duplicated.)180 717.6 Q
|
||||
(GNU Bash-4.1)72 768 Q(2009 October 9)142.905 E(23)192.895 E 0 Cg EP
|
||||
(GNU Bash-4.1)72 768 Q(2009 October 16)140.405 E(23)190.395 E 0 Cg EP
|
||||
%%Page: 24 24
|
||||
%%BeginPageSetup
|
||||
BP
|
||||
@@ -3087,7 +3087,7 @@ e descriptor 1\) and the standard error output \(\214le descrip-)-.25 F
|
||||
(The format for appending standard output and standard error is:)108
|
||||
688.8 Q F1(&>>)144 705.6 Q F2(wor)A(d)-.37 E F0
|
||||
(This is semantically equi)108 722.4 Q -.25(va)-.25 G(lent to).25 E
|
||||
(GNU Bash-4.1)72 768 Q(2009 October 9)142.905 E(24)192.895 E 0 Cg EP
|
||||
(GNU Bash-4.1)72 768 Q(2009 October 16)140.405 E(24)190.395 E 0 Cg EP
|
||||
%%Page: 25 25
|
||||
%%BeginPageSetup
|
||||
BP
|
||||
@@ -3173,8 +3173,8 @@ E F0(is closed after being duplicated to)2.5 E F2(n)2.5 E F0(.)A
|
||||
.286(is not speci-)2.786 F(\214ed.)108 672 Q F1
|
||||
(Opening File Descriptors f)87 688.8 Q(or Reading and Writing)-.25 E F0
|
||||
(The redirection operator)108 700.8 Q([)144 717.6 Q F2(n)A F0(])A F1(<>)
|
||||
A F2(wor)A(d)-.37 E F0(GNU Bash-4.1)72 768 Q(2009 October 9)142.905 E
|
||||
(25)192.895 E 0 Cg EP
|
||||
A F2(wor)A(d)-.37 E F0(GNU Bash-4.1)72 768 Q(2009 October 16)140.405 E
|
||||
(25)190.395 E 0 Cg EP
|
||||
%%Page: 26 26
|
||||
%%BeginPageSetup
|
||||
BP
|
||||
@@ -3323,7 +3323,7 @@ F0(or)3.859 E F3(typeset)3.859 E F0 -.2(bu)3.859 G 1.359(iltin com-).2 F
|
||||
3.39(mands. The)108 724.8 R F3<ad46>3.39 E F0 .89(option to)3.39 F F3
|
||||
(declar)3.39 E(e)-.18 E F0(or)3.39 E F3(typeset)3.39 E F0 .89
|
||||
(will list the function names only \(and optionally the source)3.39 F
|
||||
(GNU Bash-4.1)72 768 Q(2009 October 9)142.905 E(26)192.895 E 0 Cg EP
|
||||
(GNU Bash-4.1)72 768 Q(2009 October 16)140.405 E(26)190.395 E 0 Cg EP
|
||||
%%Page: 27 27
|
||||
%%BeginPageSetup
|
||||
BP
|
||||
@@ -3420,7 +3420,7 @@ etters may be used interchangeably to represent num-)-.25 F
|
||||
(xpressions in parentheses are e)-.15 F -.25(va)-.25 G .234
|
||||
(luated \214rst and may).25 F -.15(ove)108 712.8 S
|
||||
(rride the precedence rules abo).15 E -.15(ve)-.15 G(.).15 E
|
||||
(GNU Bash-4.1)72 768 Q(2009 October 9)142.905 E(27)192.895 E 0 Cg EP
|
||||
(GNU Bash-4.1)72 768 Q(2009 October 16)140.405 E(27)190.395 E 0 Cg EP
|
||||
%%Page: 28 28
|
||||
%%BeginPageSetup
|
||||
BP
|
||||
@@ -3447,80 +3447,83 @@ F2(test)2.755 E F0(and)2.755 E F2([)2.756 E F0 -.2(bu)2.756 G .256
|
||||
(Unless otherwise speci\214ed, primaries that operate on \214les follo)
|
||||
108 160.8 R 3.221(ws)-.25 G .722(ymbolic links and operate on the tar)
|
||||
-3.221 F(get)-.18 E(of the link, rather than the link itself.)108 172.8
|
||||
Q F2<ad61>108 196.8 Q F3(\214le)2.5 E F0 -.35(Tr)10.58 G(ue if).35 E F3
|
||||
(\214le)2.5 E F0 -.15(ex)2.5 G(ists.).15 E F2<ad62>108 208.8 Q F3
|
||||
(\214le)2.5 E F0 -.35(Tr)10.02 G(ue if).35 E F3(\214le)2.5 E F0 -.15(ex)
|
||||
2.5 G(ists and is a block special \214le.).15 E F2<ad63>108 220.8 Q F3
|
||||
Q(When used with)108 190.8 Q F2([[)2.5 E F0 2.5(,T)C(he)-2.5 E F2(<)2.5
|
||||
E F0(and)2.5 E F2(>)2.5 E F0(operators sort le)2.5 E
|
||||
(xicographically using the current locale.)-.15 E F2<ad61>108 214.8 Q F3
|
||||
(\214le)2.5 E F0 -.35(Tr)10.58 G(ue if).35 E F3(\214le)2.5 E F0 -.15(ex)
|
||||
2.5 G(ists.).15 E F2<ad62>108 226.8 Q F3(\214le)2.5 E F0 -.35(Tr)10.02 G
|
||||
(ue if).35 E F3(\214le)2.5 E F0 -.15(ex)2.5 G
|
||||
(ists and is a block special \214le.).15 E F2<ad63>108 238.8 Q F3
|
||||
(\214le)2.5 E F0 -.35(Tr)11.14 G(ue if).35 E F3(\214le)2.5 E F0 -.15(ex)
|
||||
2.5 G(ists and is a character special \214le.).15 E F2<ad64>108 232.8 Q
|
||||
2.5 G(ists and is a character special \214le.).15 E F2<ad64>108 250.8 Q
|
||||
F3(\214le)2.5 E F0 -.35(Tr)10.02 G(ue if).35 E F3(\214le)2.5 E F0 -.15
|
||||
(ex)2.5 G(ists and is a directory).15 E(.)-.65 E F2<ad65>108 244.8 Q F3
|
||||
(ex)2.5 G(ists and is a directory).15 E(.)-.65 E F2<ad65>108 262.8 Q F3
|
||||
(\214le)2.5 E F0 -.35(Tr)11.14 G(ue if).35 E F3(\214le)2.5 E F0 -.15(ex)
|
||||
2.5 G(ists.).15 E F2<ad66>108 256.8 Q F3(\214le)2.5 E F0 -.35(Tr)12.25 G
|
||||
2.5 G(ists.).15 E F2<ad66>108 274.8 Q F3(\214le)2.5 E F0 -.35(Tr)12.25 G
|
||||
(ue if).35 E F3(\214le)2.5 E F0 -.15(ex)2.5 G(ists and is a re).15 E
|
||||
(gular \214le.)-.15 E F2<ad67>108 268.8 Q F3(\214le)2.5 E F0 -.35(Tr)
|
||||
(gular \214le.)-.15 E F2<ad67>108 286.8 Q F3(\214le)2.5 E F0 -.35(Tr)
|
||||
10.58 G(ue if).35 E F3(\214le)2.5 E F0 -.15(ex)2.5 G
|
||||
(ists and is set-group-id.).15 E F2<ad68>108 280.8 Q F3(\214le)2.5 E F0
|
||||
(ists and is set-group-id.).15 E F2<ad68>108 298.8 Q F3(\214le)2.5 E F0
|
||||
-.35(Tr)10.02 G(ue if).35 E F3(\214le)2.5 E F0 -.15(ex)2.5 G
|
||||
(ists and is a symbolic link.).15 E F2<ad6b>108 292.8 Q F3(\214le)2.5 E
|
||||
(ists and is a symbolic link.).15 E F2<ad6b>108 310.8 Q F3(\214le)2.5 E
|
||||
F0 -.35(Tr)10.02 G(ue if).35 E F3(\214le)2.5 E F0 -.15(ex)2.5 G
|
||||
(ists and its `).15 E(`stick)-.74 E(y')-.15 E 2.5('b)-.74 G(it is set.)
|
||||
-2.5 E F2<ad70>108 304.8 Q F3(\214le)2.5 E F0 -.35(Tr)10.02 G(ue if).35
|
||||
-2.5 E F2<ad70>108 322.8 Q F3(\214le)2.5 E F0 -.35(Tr)10.02 G(ue if).35
|
||||
E F3(\214le)2.5 E F0 -.15(ex)2.5 G(ists and is a named pipe \(FIFO\).)
|
||||
.15 E F2<ad72>108 316.8 Q F3(\214le)2.5 E F0 -.35(Tr)11.14 G(ue if).35 E
|
||||
.15 E F2<ad72>108 334.8 Q F3(\214le)2.5 E F0 -.35(Tr)11.14 G(ue if).35 E
|
||||
F3(\214le)2.5 E F0 -.15(ex)2.5 G(ists and is readable.).15 E F2<ad73>108
|
||||
328.8 Q F3(\214le)2.5 E F0 -.35(Tr)11.69 G(ue if).35 E F3(\214le)2.5 E
|
||||
346.8 Q F3(\214le)2.5 E F0 -.35(Tr)11.69 G(ue if).35 E F3(\214le)2.5 E
|
||||
F0 -.15(ex)2.5 G(ists and has a size greater than zero.).15 E F2<ad74>
|
||||
108 340.8 Q F3(fd)2.5 E F0 -.35(Tr)16.69 G(ue if \214le descriptor).35 E
|
||||
108 358.8 Q F3(fd)2.5 E F0 -.35(Tr)16.69 G(ue if \214le descriptor).35 E
|
||||
F3(fd)4.47 E F0(is open and refers to a terminal.)3.27 E F2<ad75>108
|
||||
352.8 Q F3(\214le)2.5 E F0 -.35(Tr)10.02 G(ue if).35 E F3(\214le)2.5 E
|
||||
370.8 Q F3(\214le)2.5 E F0 -.35(Tr)10.02 G(ue if).35 E F3(\214le)2.5 E
|
||||
F0 -.15(ex)2.5 G(ists and its set-user).15 E(-id bit is set.)-.2 E F2
|
||||
<ad77>108 364.8 Q F3(\214le)2.5 E F0 -.35(Tr)8.36 G(ue if).35 E F3
|
||||
<ad77>108 382.8 Q F3(\214le)2.5 E F0 -.35(Tr)8.36 G(ue if).35 E F3
|
||||
(\214le)2.5 E F0 -.15(ex)2.5 G(ists and is writable.).15 E F2<ad78>108
|
||||
376.8 Q F3(\214le)2.5 E F0 -.35(Tr)10.58 G(ue if).35 E F3(\214le)2.5 E
|
||||
394.8 Q F3(\214le)2.5 E F0 -.35(Tr)10.58 G(ue if).35 E F3(\214le)2.5 E
|
||||
F0 -.15(ex)2.5 G(ists and is e).15 E -.15(xe)-.15 G(cutable.).15 E F2
|
||||
<ad4f>108 388.8 Q F3(\214le)2.5 E F0 -.35(Tr)7.8 G(ue if).35 E F3
|
||||
<ad4f>108 406.8 Q F3(\214le)2.5 E F0 -.35(Tr)7.8 G(ue if).35 E F3
|
||||
(\214le)2.5 E F0 -.15(ex)2.5 G(ists and is o).15 E(wned by the ef)-.25 E
|
||||
(fecti)-.25 E .3 -.15(ve u)-.25 H(ser id.).15 E F2<ad47>108 400.8 Q F3
|
||||
(fecti)-.25 E .3 -.15(ve u)-.25 H(ser id.).15 E F2<ad47>108 418.8 Q F3
|
||||
(\214le)2.5 E F0 -.35(Tr)7.8 G(ue if).35 E F3(\214le)2.5 E F0 -.15(ex)
|
||||
2.5 G(ists and is o).15 E(wned by the ef)-.25 E(fecti)-.25 E .3 -.15
|
||||
(ve g)-.25 H(roup id.).15 E F2<ad4c>108 412.8 Q F3(\214le)2.5 E F0 -.35
|
||||
(ve g)-.25 H(roup id.).15 E F2<ad4c>108 430.8 Q F3(\214le)2.5 E F0 -.35
|
||||
(Tr)8.91 G(ue if).35 E F3(\214le)2.5 E F0 -.15(ex)2.5 G
|
||||
(ists and is a symbolic link.).15 E F2<ad53>108 424.8 Q F3(\214le)2.5 E
|
||||
(ists and is a symbolic link.).15 E F2<ad53>108 442.8 Q F3(\214le)2.5 E
|
||||
F0 -.35(Tr)10.02 G(ue if).35 E F3(\214le)2.5 E F0 -.15(ex)2.5 G
|
||||
(ists and is a sock).15 E(et.)-.1 E F2<ad4e>108 436.8 Q F3(\214le)2.5 E
|
||||
(ists and is a sock).15 E(et.)-.1 E F2<ad4e>108 454.8 Q F3(\214le)2.5 E
|
||||
F0 -.35(Tr)8.36 G(ue if).35 E F3(\214le)2.5 E F0 -.15(ex)2.5 G
|
||||
(ists and has been modi\214ed since it w).15 E(as last read.)-.1 E F3
|
||||
(\214le1)108 448.8 Q F0<ad>2.5 E F2(nt)A F3(\214le2)2.5 E F0 -.35(Tr)144
|
||||
460.8 S .039(ue if).35 F F3(\214le1)2.539 E F0 .039(is ne)2.539 F .039
|
||||
(\214le1)108 466.8 Q F0<ad>2.5 E F2(nt)A F3(\214le2)2.5 E F0 -.35(Tr)144
|
||||
478.8 S .039(ue if).35 F F3(\214le1)2.539 E F0 .039(is ne)2.539 F .039
|
||||
(wer \(according to modi\214cation date\) than)-.25 F F3(\214le2)2.539 E
|
||||
F0 2.539(,o)C 2.539(ri)-2.539 G(f)-2.539 E F3(\214le1)2.539 E F0 -.15
|
||||
(ex)2.539 G .039(ists and).15 F F3(\214le2)2.539 E F0 .038(does not.)
|
||||
2.538 F F3(\214le1)108 472.8 Q F0<ad>2.5 E F2(ot)A F3(\214le2)2.5 E F0
|
||||
-.35(Tr)144 484.8 S(ue if).35 E F3(\214le1)2.5 E F0(is older than)2.5 E
|
||||
2.538 F F3(\214le1)108 490.8 Q F0<ad>2.5 E F2(ot)A F3(\214le2)2.5 E F0
|
||||
-.35(Tr)144 502.8 S(ue if).35 E F3(\214le1)2.5 E F0(is older than)2.5 E
|
||||
F3(\214le2)2.5 E F0 2.5(,o)C 2.5(ri)-2.5 G(f)-2.5 E F3(\214le2)2.5 E F0
|
||||
-.15(ex)2.5 G(ists and).15 E F3(\214le1)2.5 E F0(does not.)2.5 E F3
|
||||
(\214le1)108 496.8 Q F2(\255ef)2.5 E F3(\214le2)2.5 E F0 -.35(Tr)144
|
||||
508.8 S(ue if).35 E F3(\214le1)2.5 E F0(and)2.5 E F3(\214le2)2.5 E F0
|
||||
(\214le1)108 514.8 Q F2(\255ef)2.5 E F3(\214le2)2.5 E F0 -.35(Tr)144
|
||||
526.8 S(ue if).35 E F3(\214le1)2.5 E F0(and)2.5 E F3(\214le2)2.5 E F0
|
||||
(refer to the same de)2.5 E(vice and inode numbers.)-.25 E F2<ad6f>108
|
||||
520.8 Q F3(optname)2.5 E F0 -.35(Tr)144 532.8 S 1.143
|
||||
538.8 Q F3(optname)2.5 E F0 -.35(Tr)144 550.8 S 1.143
|
||||
(ue if shell option).35 F F3(optname)3.873 E F0 1.143(is enabled.)3.823
|
||||
F 1.144(See the list of options under the description of the)6.143 F F2
|
||||
<ad6f>3.644 E F0(option to the)144 544.8 Q F2(set)2.5 E F0 -.2(bu)2.5 G
|
||||
(iltin belo).2 E -.65(w.)-.25 G F2<ad7a>108 556.8 Q F3(string)2.5 E F0
|
||||
-.35(Tr)144 568.8 S(ue if the length of).35 E F3(string)2.5 E F0
|
||||
(is zero.)2.5 E F3(string)108 580.8 Q F2<ad6e>108 592.8 Q F3(string)2.5
|
||||
E F0 -.35(Tr)144 604.8 S(ue if the length of).35 E F3(string)2.84 E F0
|
||||
(is non-zero.)2.72 E F3(string1)108 621.6 Q F2(==)2.5 E F3(string2)2.5 E
|
||||
F0 -.35(Tr)144 633.6 S(ue if the strings are equal.).35 E F2(=)5 E F0
|
||||
<ad6f>3.644 E F0(option to the)144 562.8 Q F2(set)2.5 E F0 -.2(bu)2.5 G
|
||||
(iltin belo).2 E -.65(w.)-.25 G F2<ad7a>108 574.8 Q F3(string)2.5 E F0
|
||||
-.35(Tr)144 586.8 S(ue if the length of).35 E F3(string)2.5 E F0
|
||||
(is zero.)2.5 E F3(string)108 598.8 Q F2<ad6e>108 610.8 Q F3(string)2.5
|
||||
E F0 -.35(Tr)144 622.8 S(ue if the length of).35 E F3(string)2.84 E F0
|
||||
(is non-zero.)2.72 E F3(string1)108 639.6 Q F2(==)2.5 E F3(string2)2.5 E
|
||||
F0 -.35(Tr)144 651.6 S(ue if the strings are equal.).35 E F2(=)5 E F0
|
||||
(may be used in place of)2.5 E F2(==)2.5 E F0
|
||||
(for strict POSIX compliance.)2.5 E F3(string1)108 650.4 Q F2(!=)2.5 E
|
||||
F3(string2)2.5 E F0 -.35(Tr)144 662.4 S
|
||||
(ue if the strings are not equal.).35 E F3(string1)108 679.2 Q F2(<)2.5
|
||||
E F3(string2)2.5 E F0 -.35(Tr)144 691.2 S(ue if).35 E F3(string1)2.5 E
|
||||
(for strict POSIX compliance.)2.5 E F3(string1)108 668.4 Q F2(!=)2.5 E
|
||||
F3(string2)2.5 E F0 -.35(Tr)144 680.4 S
|
||||
(ue if the strings are not equal.).35 E F3(string1)108 697.2 Q F2(<)2.5
|
||||
E F3(string2)2.5 E F0 -.35(Tr)144 709.2 S(ue if).35 E F3(string1)2.5 E
|
||||
F0(sorts before)2.5 E F3(string2)2.5 E F0(le)2.5 E(xicographically)-.15
|
||||
E(.)-.65 E(GNU Bash-4.1)72 768 Q(2009 October 9)142.905 E(28)192.895 E 0
|
||||
Cg EP
|
||||
E(.)-.65 E(GNU Bash-4.1)72 768 Q(2009 October 16)140.405 E(28)190.395 E
|
||||
0 Cg EP
|
||||
%%Page: 29 29
|
||||
%%BeginPageSetup
|
||||
BP
|
||||
@@ -3643,8 +3646,8 @@ F .198(gument 0 is set to the name gi)-.18 F -.15(ve)-.25 G .197
|
||||
(andle the script, with)-2.83 F 1.219(the e)108 727.2 R 1.219
|
||||
(xception that the locations of commands remembered by the parent \(see)
|
||||
-.15 F F2(hash)3.719 E F0(belo)3.719 E 3.719(wu)-.25 G(nder)-3.719 E F3
|
||||
(SHELL)3.719 E F0(GNU Bash-4.1)72 768 Q(2009 October 9)142.905 E(29)
|
||||
192.895 E 0 Cg EP
|
||||
(SHELL)3.719 E F0(GNU Bash-4.1)72 768 Q(2009 October 16)140.405 E(29)
|
||||
190.395 E 0 Cg EP
|
||||
%%Page: 30 30
|
||||
%%BeginPageSetup
|
||||
BP
|
||||
@@ -3739,7 +3742,7 @@ F3<ad65>3.876 E F0 1.376(option from the parent)3.876 F 2.5(shell. When)
|
||||
(therwise, the in)-5.198 F -.2(vo)-.4 G -.1(ke).2 G 2.698(dc).1 G .197
|
||||
(ommand inherits the \214le descriptors of the calling shell)-2.698 F
|
||||
(as modi\214ed by redirections.)108 705.6 Q(GNU Bash-4.1)72 768 Q
|
||||
(2009 October 9)142.905 E(30)192.895 E 0 Cg EP
|
||||
(2009 October 16)140.405 E(30)190.395 E 0 Cg EP
|
||||
%%Page: 31 31
|
||||
%%BeginPageSetup
|
||||
BP
|
||||
@@ -3873,8 +3876,8 @@ particular job, it should be remo).15 F -.15(ve)-.15 G 3.429(df).15 G
|
||||
(shell option has been set with)2.666 F F3(shopt)2.666 E F0(,)A F3(bash)
|
||||
2.666 E F0 .166(sends a)2.666 F F4(SIGHUP)2.666 E F0 .166
|
||||
(to all jobs when an interacti)2.416 F -.15(ve)-.25 G(login shell e)108
|
||||
715.2 Q(xits.)-.15 E(GNU Bash-4.1)72 768 Q(2009 October 9)142.905 E(31)
|
||||
192.895 E 0 Cg EP
|
||||
715.2 Q(xits.)-.15 E(GNU Bash-4.1)72 768 Q(2009 October 16)140.405 E(31)
|
||||
190.395 E 0 Cg EP
|
||||
%%Page: 32 32
|
||||
%%BeginPageSetup
|
||||
BP
|
||||
@@ -4015,7 +4018,7 @@ F3(curr)2.518 E .018(ent job)-.37 F F0 2.518(,w).23 G .018(hich is)
|
||||
(reports such changes immediately)3.951 F 6.452(.A)-.65 G 1.752 -.15
|
||||
(ny t)-6.452 H 1.452(rap on).15 F F4(SIGCHLD)3.952 E F0(is)3.702 E -.15
|
||||
(exe)108 715.2 S(cuted for each child that e).15 E(xits.)-.15 E
|
||||
(GNU Bash-4.1)72 768 Q(2009 October 9)142.905 E(32)192.895 E 0 Cg EP
|
||||
(GNU Bash-4.1)72 768 Q(2009 October 16)140.405 E(32)190.395 E 0 Cg EP
|
||||
%%Page: 33 33
|
||||
%%BeginPageSetup
|
||||
BP
|
||||
@@ -4121,7 +4124,7 @@ F3(SHELL B)2.5 E(UIL)-.09 E(TIN COMMANDS)-.828 E F0(belo)2.25 E(w\).)
|
||||
-.828 F F0(belo)3.012 E 3.262(w\). T)-.25 F 3.263(ot)-.8 G .763(urn of)
|
||||
-3.263 F 3.263(fl)-.25 G .763
|
||||
(ine editing after the shell is running, use the)-3.263 F F1(+o)3.263 E
|
||||
F0(GNU Bash-4.1)72 768 Q(2009 October 9)142.905 E(33)192.895 E 0 Cg EP
|
||||
F0(GNU Bash-4.1)72 768 Q(2009 October 16)140.405 E(33)190.395 E 0 Cg EP
|
||||
%%Page: 34 34
|
||||
%%BeginPageSetup
|
||||
BP
|
||||
@@ -4243,7 +4246,7 @@ E(eyseq")-.1 E F0(:)A F2(function\255name).833 E F0(or)2.556 E F2(macr)
|
||||
(ve i)-.15 H 2.555(nt).15 G .055(hat strings)-2.555 F 1.284
|
||||
(denoting an entire k)108 722.4 R 1.584 -.15(ey s)-.1 H 1.284(equence m\
|
||||
ay be speci\214ed by placing the sequence within double quotes.).15 F
|
||||
(Some)6.284 E(GNU Bash-4.1)72 768 Q(2009 October 9)142.905 E(34)192.895
|
||||
(Some)6.284 E(GNU Bash-4.1)72 768 Q(2009 October 16)140.405 E(34)190.395
|
||||
E 0 Cg EP
|
||||
%%Page: 35 35
|
||||
%%BeginPageSetup
|
||||
@@ -4332,8 +4335,8 @@ s to bind the control characters treated specially by the k)-2.556 F
|
||||
F2(insert\255comment)3.385 E F0 .885(command is e)3.385 F -.15(xe)-.15 G
|
||||
3.385(cuted. This).15 F(com-)3.385 E(mand is bound to)144 715.2 Q F2
|
||||
(M\255#)2.5 E F0(in emacs mode and to)2.5 E F2(#)2.5 E F0
|
||||
(in vi command mode.)2.5 E(GNU Bash-4.1)72 768 Q(2009 October 9)142.905
|
||||
E(35)192.895 E 0 Cg EP
|
||||
(in vi command mode.)2.5 E(GNU Bash-4.1)72 768 Q(2009 October 16)140.405
|
||||
E(35)190.395 E 0 Cg EP
|
||||
%%Page: 36 36
|
||||
%%BeginPageSetup
|
||||
BP
|
||||
@@ -4433,8 +4436,8 @@ R -.15(ey)-.1 G 4.521(map. The).15 F 2.021(set of v)4.521 F 2.021
|
||||
(emacs\255meta, emacs\255ctlx, vi, vi\255command)144 720 R F0 2.568(,a)C
|
||||
(nd)-2.568 E F2(vi\255insert)2.568 E F0(.).68 E F2(vi)5.068 E F0 .068
|
||||
(is equi)2.568 F -.25(va)-.25 G .068(lent to).25 F F2(vi\255command)
|
||||
2.568 E F0(;)A F2(emacs)2.568 E F0(GNU Bash-4.1)72 768 Q(2009 October 9)
|
||||
142.905 E(36)192.895 E 0 Cg EP
|
||||
2.568 E F0(;)A F2(emacs)2.568 E F0(GNU Bash-4.1)72 768 Q
|
||||
(2009 October 16)140.405 E(36)190.395 E 0 Cg EP
|
||||
%%Page: 37 37
|
||||
%%BeginPageSetup
|
||||
BP
|
||||
@@ -4537,7 +4540,7 @@ F2 .565(set k)3.065 F(eymap)-.1 E F0 .565(command, for instance, to)
|
||||
3.065 F .735(set bindings in the)180 722.4 R F1(emacs\255standar)3.235 E
|
||||
(d)-.37 E F0(and)3.235 E F1(emacs\255ctlx)3.235 E F0 -.1(ke)3.235 G .735
|
||||
(ymaps only if readline is starting)-.05 F(GNU Bash-4.1)72 768 Q
|
||||
(2009 October 9)142.905 E(37)192.895 E 0 Cg EP
|
||||
(2009 October 16)140.405 E(37)190.395 E 0 Cg EP
|
||||
%%Page: 38 38
|
||||
%%BeginPageSetup
|
||||
BP
|
||||
@@ -4637,7 +4640,8 @@ F0 .911(refers to a cursor position sa)3.411 F -.15(ve)-.2 G 3.411(db)
|
||||
(command. The)2.5 F(te)2.5 E
|
||||
(xt between the point and mark is referred to as the)-.15 E F2 -.37(re)
|
||||
2.5 G(gion)-.03 E F0(.)A F1(Commands f)87 705.6 Q(or Mo)-.25 E(ving)-.1
|
||||
E F0(GNU Bash-4.1)72 768 Q(2009 October 9)142.905 E(38)192.895 E 0 Cg EP
|
||||
E F0(GNU Bash-4.1)72 768 Q(2009 October 16)140.405 E(38)190.395 E 0 Cg
|
||||
EP
|
||||
%%Page: 39 39
|
||||
%%BeginPageSetup
|
||||
BP
|
||||
@@ -4713,7 +4717,7 @@ a non-incremental search for a string supplied by the)-.1 F(user)144
|
||||
-.25 E F0 .248(Search forw)144 700.8 R .249(ard through the history for\
|
||||
the string of characters between the start of the current line)-.1 F
|
||||
(and the point.)144 712.8 Q(This is a non-incremental search.)5 E
|
||||
(GNU Bash-4.1)72 768 Q(2009 October 9)142.905 E(39)192.895 E 0 Cg EP
|
||||
(GNU Bash-4.1)72 768 Q(2009 October 16)140.405 E(39)190.395 E 0 Cg EP
|
||||
%%Page: 40 40
|
||||
%%BeginPageSetup
|
||||
BP
|
||||
@@ -4812,7 +4816,7 @@ G .779(nsert characters lik)-3.279 F(e)-.1 E F1(C\255q)3.278 E F0 3.278
|
||||
(,f)C(or)-3.278 E -.15(ex)144 676.8 S(ample.).15 E F1
|
||||
(tab\255insert \(C\255v T)108 688.8 Q(AB\))-.9 E F0
|
||||
(Insert a tab character)144 700.8 Q(.)-.55 E(GNU Bash-4.1)72 768 Q
|
||||
(2009 October 9)142.905 E(40)192.895 E 0 Cg EP
|
||||
(2009 October 16)140.405 E(40)190.395 E 0 Cg EP
|
||||
%%Page: 41 41
|
||||
%%BeginPageSetup
|
||||
BP
|
||||
@@ -4907,7 +4911,7 @@ F 5.365(.T)-.65 G .365(he killed te)-5.365 F .365(xt is sa)-.15 F -.15
|
||||
(xt is sa)-.15 E -.15(ve)-.2 G 2.5(do).15 G 2.5(nt)-2.5 G(he kill-ring.)
|
||||
-2.5 E F1(delete\255horizontal\255space \(M\255\\\))108 700.8 Q F0
|
||||
(Delete all spaces and tabs around point.)144 712.8 Q(GNU Bash-4.1)72
|
||||
768 Q(2009 October 9)142.905 E(41)192.895 E 0 Cg EP
|
||||
768 Q(2009 October 16)140.405 E(41)190.395 E 0 Cg EP
|
||||
%%Page: 42 42
|
||||
%%BeginPageSetup
|
||||
BP
|
||||
@@ -5008,7 +5012,7 @@ F1(delete\255char\255or\255list)108 657.6 Q F0 .234
|
||||
(his command is unbound)-5.425 F(by def)144 693.6 Q(ault.)-.1 E F1
|
||||
(complete\255\214lename \(M\255/\))108 705.6 Q F0
|
||||
(Attempt \214lename completion on the te)144 717.6 Q(xt before point.)
|
||||
-.15 E(GNU Bash-4.1)72 768 Q(2009 October 9)142.905 E(42)192.895 E 0 Cg
|
||||
-.15 E(GNU Bash-4.1)72 768 Q(2009 October 16)140.405 E(42)190.395 E 0 Cg
|
||||
EP
|
||||
%%Page: 43 43
|
||||
%%BeginPageSetup
|
||||
@@ -5097,7 +5101,7 @@ C(..\))-2.5 E F0 1.756(If the meta\214ed character)144 633.6 R F2(x)
|
||||
F 3.595(ee)-.1 G -.15(xe)-3.745 G 1.095(cuting the).15 F F1(undo)3.595 E
|
||||
F0 1.095(command enough times to)3.595 F
|
||||
(return the line to its initial state.)144 729.6 Q(GNU Bash-4.1)72 768 Q
|
||||
(2009 October 9)142.905 E(43)192.895 E 0 Cg EP
|
||||
(2009 October 16)140.405 E(43)190.395 E 0 Cg EP
|
||||
%%Page: 44 44
|
||||
%%BeginPageSetup
|
||||
BP
|
||||
@@ -5203,7 +5207,7 @@ F2(compspec)108 724.8 Q F0 3.829(\)h)C 1.329
|
||||
(as been de\214ned using the)-3.829 F F1(complete)3.829 E F0 -.2(bu)
|
||||
3.829 G 1.329(iltin \(see).2 F/F3 9/Times-Bold@0 SF 1.329(SHELL B)3.829
|
||||
F(UIL)-.09 E 1.329(TIN COMMANDS)-.828 F F0(belo)3.579 E 1.328(w\), the)
|
||||
-.25 F(GNU Bash-4.1)72 768 Q(2009 October 9)142.905 E(44)192.895 E 0 Cg
|
||||
-.25 F(GNU Bash-4.1)72 768 Q(2009 October 16)140.405 E(44)190.395 E 0 Cg
|
||||
EP
|
||||
%%Page: 45 45
|
||||
%%BeginPageSetup
|
||||
@@ -5341,7 +5345,7 @@ F(pletion is attempted and an)108 705.6 Q 2.5(ym)-.15 G
|
||||
(By def)108 722.4 R .56(ault, if a compspec is found, whate)-.1 F -.15
|
||||
(ve)-.25 G 3.06(ri).15 G 3.06(tg)-3.06 G .559
|
||||
(enerates is returned to the completion code as the full set)-3.06 F
|
||||
(GNU Bash-4.1)72 768 Q(2009 October 9)142.905 E(45)192.895 E 0 Cg EP
|
||||
(GNU Bash-4.1)72 768 Q(2009 October 16)140.405 E(45)190.395 E 0 Cg EP
|
||||
%%Page: 46 46
|
||||
%%BeginPageSetup
|
||||
BP
|
||||
@@ -5471,7 +5475,7 @@ E(OL)-.27 E F0(and)3.736 E F5(HISTIGNORE)108 710.4 Q F0 -.25(va)2.708 G
|
||||
(cmdhist)108 722.4 Q F0 .75
|
||||
(shell option, if enabled, causes the shell to attempt to sa)3.25 F 1.05
|
||||
-.15(ve e)-.2 H .75(ach line of a multi-line command in).15 F
|
||||
(GNU Bash-4.1)72 768 Q(2009 October 9)142.905 E(46)192.895 E 0 Cg EP
|
||||
(GNU Bash-4.1)72 768 Q(2009 October 16)140.405 E(46)190.395 E 0 Cg EP
|
||||
%%Page: 47 47
|
||||
%%BeginPageSetup
|
||||
BP
|
||||
@@ -5593,7 +5597,7 @@ SF(^)108 667.4 Q F4(string1)-5 I F5(^)5 I F4(string2)-5 I F5(^)5 I F0
|
||||
F4(string2)A F0(/')A 2.5('\()-.74 G(see)-2.5 E F1(Modi\214ers)2.5 E F0
|
||||
(belo)2.5 E(w\).)-.25 E F1(!#)108 698.4 Q F0
|
||||
(The entire command line typed so f)27.67 E(ar)-.1 E(.)-.55 E
|
||||
(GNU Bash-4.1)72 768 Q(2009 October 9)142.905 E(47)192.895 E 0 Cg EP
|
||||
(GNU Bash-4.1)72 768 Q(2009 October 16)140.405 E(47)190.395 E 0 Cg EP
|
||||
%%Page: 48 48
|
||||
%%BeginPageSetup
|
||||
BP
|
||||
@@ -5706,7 +5710,7 @@ F F1<adad>3.644 E F0 1.144(to pre)3.644 F -.15(ve)-.25 G 1.144(nt this)
|
||||
2.951(ys)-.15 G(peci\214ed)-2.951 E 2.5(redirections. A)144 690 R
|
||||
(zero e)2.5 E(xit code is returned.)-.15 E F1(.)110.5 706.8 Q F2
|
||||
(\214lename)6.666 E F0([)2.5 E F2(ar)A(guments)-.37 E F0(])A
|
||||
(GNU Bash-4.1)72 768 Q(2009 October 9)142.905 E(48)192.895 E 0 Cg EP
|
||||
(GNU Bash-4.1)72 768 Q(2009 October 16)140.405 E(48)190.395 E 0 Cg EP
|
||||
%%Page: 49 49
|
||||
%%BeginPageSetup
|
||||
BP
|
||||
@@ -5829,7 +5833,7 @@ F1<ad71>144 662.4 Q F2(function)2.5 E F0(Query about which k)180 674.4 Q
|
||||
(he named).1 E F2(function)2.5 E F0(.)A F1<ad75>144 686.4 Q F2(function)
|
||||
2.5 E F0(Unbind all k)180 698.4 Q -.15(ey)-.1 G 2.5(sb).15 G
|
||||
(ound to the named)-2.5 E F2(function)2.5 E F0(.)A(GNU Bash-4.1)72 768 Q
|
||||
(2009 October 9)142.905 E(49)192.895 E 0 Cg EP
|
||||
(2009 October 16)140.405 E(49)190.395 E 0 Cg EP
|
||||
%%Page: 50 50
|
||||
%%BeginPageSetup
|
||||
BP
|
||||
@@ -5967,7 +5971,7 @@ F1<ad46>3.915 E F0(or)3.915 E F1<ad43>3.915 E F0 1.415(options, the v)
|
||||
3.915 F 1.415(arious shell v)-.25 F 1.415(ariables set by the pro-)-.25
|
||||
F(grammable completion f)144 729.6 Q(acilities, while a)-.1 E -.25(va)
|
||||
-.2 G(ilable, will not ha).25 E .3 -.15(ve u)-.2 H(seful v).15 E(alues.)
|
||||
-.25 E(GNU Bash-4.1)72 768 Q(2009 October 9)142.905 E(50)192.895 E 0 Cg
|
||||
-.25 E(GNU Bash-4.1)72 768 Q(2009 October 16)140.405 E(50)190.395 E 0 Cg
|
||||
EP
|
||||
%%Page: 51 51
|
||||
%%BeginPageSetup
|
||||
@@ -6062,8 +6066,8 @@ G 2.5(yb)-.05 G(inding names.)-2.5 E F2 -.2(bu)184 688.8 S(iltin).2 E F0
|
||||
(Names of shell b)11.85 E(uiltin commands.)-.2 E
|
||||
(May also be speci\214ed as)5 E F2<ad62>2.5 E F0(.)A F2(command)184
|
||||
700.8 Q F0(Command names.)224 712.8 Q(May also be speci\214ed as)5 E F2
|
||||
<ad63>2.5 E F0(.)A(GNU Bash-4.1)72 768 Q(2009 October 9)142.905 E(51)
|
||||
192.895 E 0 Cg EP
|
||||
<ad63>2.5 E F0(.)A(GNU Bash-4.1)72 768 Q(2009 October 16)140.405 E(51)
|
||||
190.395 E 0 Cg EP
|
||||
%%Page: 52 52
|
||||
%%BeginPageSetup
|
||||
BP
|
||||
@@ -6154,7 +6158,7 @@ F3(name)2.947 E F0 .447(according to the)2.947 F F3(option)2.947 E F0
|
||||
(re supplied.)-3.225 F .725(If no)5.725 F F3(option)3.225 E F0 3.225(sa)
|
||||
C .725(re gi)-3.225 F -.15(ve)-.25 G .726
|
||||
(n, display the completion options for).15 F(GNU Bash-4.1)72 768 Q
|
||||
(2009 October 9)142.905 E(52)192.895 E 0 Cg EP
|
||||
(2009 October 16)140.405 E(52)190.395 E 0 Cg EP
|
||||
%%Page: 53 53
|
||||
%%BeginPageSetup
|
||||
BP
|
||||
@@ -6291,7 +6295,7 @@ F1(n)A F2 2.5(][)C<ad>-2.5 E F1(n)A F2 2.5(][)C(\255cplv])-2.5 E F0 -.4
|
||||
.4 F .328(The def)5.328 F .328(ault display is on a)-.1 F 1.238
|
||||
(single line with directory names separated by spaces.)144 720 R 1.238
|
||||
(Directories are added to the list with the)6.238 F(GNU Bash-4.1)72 768
|
||||
Q(2009 October 9)142.905 E(53)192.895 E 0 Cg EP
|
||||
Q(2009 October 16)140.405 E(53)190.395 E 0 Cg EP
|
||||
%%Page: 54 54
|
||||
%%BeginPageSetup
|
||||
BP
|
||||
@@ -6412,8 +6416,8 @@ F1<ad61>A F0 2.5(][)C F1(\255dnps)-2.5 E F0 2.5(][)C F1<ad66>-2.5 E F2
|
||||
(enabled. If)144 727.2 R F1<ad73>2.878 E F0 .379
|
||||
(is supplied, the output is restricted to the POSIX)2.878 F F2(special)
|
||||
2.879 E F0 -.2(bu)2.879 G 2.879(iltins. The).2 F .379(return v)2.879 F
|
||||
(alue)-.25 E(GNU Bash-4.1)72 768 Q(2009 October 9)142.905 E(54)192.895 E
|
||||
0 Cg EP
|
||||
(alue)-.25 E(GNU Bash-4.1)72 768 Q(2009 October 16)140.405 E(54)190.395
|
||||
E 0 Cg EP
|
||||
%%Page: 55 55
|
||||
%%BeginPageSetup
|
||||
BP
|
||||
@@ -6551,8 +6555,8 @@ E F1(last)2.732 E F0 .454(specify history lines out of range.)144 684 R
|
||||
708 R -.15(xe)-.15 G 1.136(cuted, unless).15 F F1(cmd)3.836 E F0 1.136
|
||||
(does not)4.406 F(specify a v)144 720 Q
|
||||
(alid history line, in which case)-.25 E F2(fc)2.5 E F0(returns f)2.5 E
|
||||
(ailure.)-.1 E(GNU Bash-4.1)72 768 Q(2009 October 9)142.905 E(55)192.895
|
||||
E 0 Cg EP
|
||||
(ailure.)-.1 E(GNU Bash-4.1)72 768 Q(2009 October 16)140.405 E(55)
|
||||
190.395 E 0 Cg EP
|
||||
%%Page: 56 56
|
||||
%%BeginPageSetup
|
||||
BP
|
||||
@@ -6674,7 +6678,7 @@ E F1(help)108 674.4 Q F0([)2.5 E F1(\255dms)A F0 2.5(][)C F2(pattern)
|
||||
698.4 R F2(pattern)2.807 E F0 2.807(;o).24 G .307
|
||||
(therwise help for all the b)-2.807 F .306
|
||||
(uiltins and shell control struc-)-.2 F(tures is printed.)144 710.4 Q
|
||||
(GNU Bash-4.1)72 768 Q(2009 October 9)142.905 E(56)192.895 E 0 Cg EP
|
||||
(GNU Bash-4.1)72 768 Q(2009 October 16)140.405 E(56)190.395 E 0 Cg EP
|
||||
%%Page: 57 57
|
||||
%%BeginPageSetup
|
||||
BP
|
||||
@@ -6777,7 +6781,7 @@ E F2(jobspec)4.24 E F0(is supplied.)2.81 E .394(If the)144 684 R F1
|
||||
(with the corre-)3.164 F(sponding process group ID, and e)144 696 Q -.15
|
||||
(xe)-.15 G(cutes).15 E F2(command)2.7 E F0(passing it)3.27 E F2(ar)2.5 E
|
||||
(gs)-.37 E F0 2.5(,r).27 G(eturning its e)-2.5 E(xit status.)-.15 E
|
||||
(GNU Bash-4.1)72 768 Q(2009 October 9)142.905 E(57)192.895 E 0 Cg EP
|
||||
(GNU Bash-4.1)72 768 Q(2009 October 16)140.405 E(57)190.395 E 0 Cg EP
|
||||
%%Page: 58 58
|
||||
%%BeginPageSetup
|
||||
BP
|
||||
@@ -6846,21 +6850,22 @@ Q F0([)2.5 E F1<ad6e>A F2(count)2.5 E F0 2.5(][)C F1<ad4f>-2.5 E F2
|
||||
-2.5 E F2(origin)2.5 E F0 2.5(][)C F1<ad73>-2.5 E F2(count)2.5 E F0 2.5
|
||||
(][)C F1<ad74>-2.5 E F0 2.5(][)C F1<ad75>-2.5 E F2(fd)2.5 E F0 2.5(][)C
|
||||
F1<ad43>-2.5 E F2(callbac)2.5 E(k)-.2 E F0 2.5(][)C F1<ad63>-2.5 E F2
|
||||
(quantum)2.5 E F0 2.5(][)C F2(arr)-2.5 E(ay)-.15 E F0(])A 1.006
|
||||
(Read lines from the standard input into array v)144 379.2 R(ariable)
|
||||
-.25 E F2(arr)3.506 E(ay)-.15 E F0 3.506(,o).32 G 3.506(rf)-3.506 G
|
||||
1.006(rom \214le descriptor)-3.506 F F2(fd)3.506 E F0 1.006(if the)3.506
|
||||
F F1<ad75>3.506 E F0 1.087(option is supplied.)144 391.2 R 1.087(The v)
|
||||
6.087 F(ariable)-.25 E F1(MAPFILE)3.587 E F0 1.086(is the def)3.587 F
|
||||
(ault)-.1 E F2(arr)3.586 E(ay)-.15 E F0 6.086(.O)C 1.086
|
||||
(ptions, if supplied, ha)-6.086 F 1.386 -.15(ve t)-.2 H(he).15 E(follo)
|
||||
144 403.2 Q(wing meanings:)-.25 E F1<ad6e>144 415.2 Q F0(Cop)24.74 E 2.5
|
||||
(ya)-.1 G 2.5(tm)-2.5 G(ost)-2.5 E F2(count)2.7 E F0 2.5(lines. If)3.18
|
||||
F F2(count)2.5 E F0(is 0, all lines are copied.)2.5 E F1<ad4f>144 427.2
|
||||
Q F0(Be)22.52 E(gin assigning to)-.15 E F2(arr)2.83 E(ay)-.15 E F0
|
||||
(at inde)2.82 E(x)-.15 E F2(origin)2.5 E F0 5(.T).24 G(he def)-5 E
|
||||
(ault inde)-.1 E 2.5(xi)-.15 G 2.5(s0)-2.5 G(.)-2.5 E F1<ad73>144 439.2
|
||||
Q F0(Discard the \214rst)26.41 E F2(count)2.5 E F0(lines read.)2.5 E F1
|
||||
(quantum)2.5 E F0 2.5(][)C F2(arr)-2.5 E(ay)-.15 E F0(])A .35
|
||||
(Read lines from the standard input into the inde)144 379.2 R -.15(xe)
|
||||
-.15 G 2.851(da).15 G .351(rray v)-2.851 F(ariable)-.25 E F2(arr)2.851 E
|
||||
(ay)-.15 E F0 2.851(,o).32 G 2.851(rf)-2.851 G .351
|
||||
(rom \214le descriptor)-2.851 F F2(fd)2.851 E F0 .925(if the)144 391.2 R
|
||||
F1<ad75>3.425 E F0 .925(option is supplied.)3.425 F .925(The v)5.925 F
|
||||
(ariable)-.25 E F1(MAPFILE)3.425 E F0 .925(is the def)3.425 F(ault)-.1 E
|
||||
F2(arr)3.424 E(ay)-.15 E F0 5.924(.O)C .924(ptions, if supplied,)-5.924
|
||||
F(ha)144 403.2 Q .3 -.15(ve t)-.2 H(he follo).15 E(wing meanings:)-.25 E
|
||||
F1<ad6e>144 415.2 Q F0(Cop)24.74 E 2.5(ya)-.1 G 2.5(tm)-2.5 G(ost)-2.5 E
|
||||
F2(count)2.7 E F0 2.5(lines. If)3.18 F F2(count)2.5 E F0
|
||||
(is 0, all lines are copied.)2.5 E F1<ad4f>144 427.2 Q F0(Be)22.52 E
|
||||
(gin assigning to)-.15 E F2(arr)2.83 E(ay)-.15 E F0(at inde)2.82 E(x)
|
||||
-.15 E F2(origin)2.5 E F0 5(.T).24 G(he def)-5 E(ault inde)-.1 E 2.5(xi)
|
||||
-.15 G 2.5(s0)-2.5 G(.)-2.5 E F1<ad73>144 439.2 Q F0
|
||||
(Discard the \214rst)26.41 E F2(count)2.5 E F0(lines read.)2.5 E F1
|
||||
<ad74>144 451.2 Q F0(Remo)26.97 E .3 -.15(ve a t)-.15 H
|
||||
(railing line from each line read.).15 E F1<ad75>144 463.2 Q F0
|
||||
(Read lines from \214le descriptor)24.74 E F2(fd)2.5 E F0
|
||||
@@ -6881,21 +6886,23 @@ E F2(callbac)6.22 E(k)-.2 E F0(is)3.72 E -.25(eva)144 528 S
|
||||
(ut before the array element is assigned.)-.2 E
|
||||
(If not supplied with an e)144 544.8 Q(xplicit origin,)-.15 E F1
|
||||
(map\214le)2.5 E F0(will clear)2.5 E F2(arr)2.5 E(ay)-.15 E F0
|
||||
(before assigning to it.)2.5 E F1(map\214le)144 561.6 Q F0 .995
|
||||
(returns successfully unless an in)3.495 F -.25(va)-.4 G .996
|
||||
(lid option or option ar).25 F .996(gument is supplied, or)-.18 F F2
|
||||
(arr)3.496 E(ay)-.15 E F0(is)3.496 E(in)144 573.6 Q -.25(va)-.4 G
|
||||
(lid or unassignable.).25 E F1(popd)108 590.4 Q F0<5bad>2.5 E F1(n)A F0
|
||||
2.5(][)C(+)-2.5 E F2(n)A F0 2.5(][)C<ad>-2.5 E F2(n)A F0(])A(Remo)144
|
||||
602.4 Q -.15(ve)-.15 G 2.8(se).15 G .3(ntries from the directory stack.)
|
||||
-2.8 F -.4(Wi)5.299 G .299(th no ar).4 F .299(guments, remo)-.18 F -.15
|
||||
(ve)-.15 G 2.799(st).15 G .299(he top directory from the)-2.799 F 1.478
|
||||
(stack, and performs a)144 614.4 R F1(cd)3.978 E F0 1.479(to the ne)
|
||||
3.978 F 3.979(wt)-.25 G 1.479(op directory)-3.979 F 6.479(.A)-.65 G -.18
|
||||
(rg)-6.479 G 1.479(uments, if supplied, ha).18 F 1.779 -.15(ve t)-.2 H
|
||||
1.479(he follo).15 F(wing)-.25 E(meanings:)144 626.4 Q F1<ad6e>144 638.4
|
||||
Q F0 .551(Suppresses the normal change of directory when remo)24.74 F
|
||||
.551(ving directories from the stack, so)-.15 F
|
||||
(before assigning to it.)2.5 E F1(map\214le)144 561.6 Q F0 1.905
|
||||
(returns successfully unless an in)4.405 F -.25(va)-.4 G 1.905
|
||||
(lid option or option ar).25 F 1.906(gument is supplied,)-.18 F F2(arr)
|
||||
4.406 E(ay)-.15 E F0(is)4.406 E(in)144 573.6 Q -.25(va)-.4 G
|
||||
(lid or unassignable, or if).25 E F2(arr)2.5 E(ay)-.15 E F0
|
||||
(is not an inde)2.5 E -.15(xe)-.15 G 2.5(da).15 G(rray)-2.5 E(.)-.65 E
|
||||
F1(popd)108 590.4 Q F0<5bad>2.5 E F1(n)A F0 2.5(][)C(+)-2.5 E F2(n)A F0
|
||||
2.5(][)C<ad>-2.5 E F2(n)A F0(])A(Remo)144 602.4 Q -.15(ve)-.15 G 2.8(se)
|
||||
.15 G .3(ntries from the directory stack.)-2.8 F -.4(Wi)5.299 G .299
|
||||
(th no ar).4 F .299(guments, remo)-.18 F -.15(ve)-.15 G 2.799(st).15 G
|
||||
.299(he top directory from the)-2.799 F 1.478(stack, and performs a)144
|
||||
614.4 R F1(cd)3.978 E F0 1.479(to the ne)3.978 F 3.979(wt)-.25 G 1.479
|
||||
(op directory)-3.979 F 6.479(.A)-.65 G -.18(rg)-6.479 G 1.479
|
||||
(uments, if supplied, ha).18 F 1.779 -.15(ve t)-.2 H 1.479(he follo).15
|
||||
F(wing)-.25 E(meanings:)144 626.4 Q F1<ad6e>144 638.4 Q F0 .551
|
||||
(Suppresses the normal change of directory when remo)24.74 F .551
|
||||
(ving directories from the stack, so)-.15 F
|
||||
(that only the stack is manipulated.)180 650.4 Q F1(+)144 662.4 Q F2(n)A
|
||||
F0(Remo)25.3 E -.15(ve)-.15 G 2.64(st).15 G(he)-2.64 E F2(n)2.64 E F0
|
||||
.14(th entry counting from the left of the list sho)B .14(wn by)-.25 F
|
||||
@@ -6915,7 +6922,7 @@ E F5(popd -1)2.5 E F0(the ne)2.5 E(xt to last.)-.15 E .643(If the)144
|
||||
(alse if an in)-.1 F -.25(va)-.4 G 2.289
|
||||
(lid option is encountered, the directory stack is empty).25 F 4.789
|
||||
(,an)-.65 G(on-e)-4.789 E(xistent)-.15 E(GNU Bash-4.1)72 768 Q
|
||||
(2009 October 9)142.905 E(58)192.895 E 0 Cg EP
|
||||
(2009 October 16)140.405 E(58)190.395 E 0 Cg EP
|
||||
%%Page: 59 59
|
||||
%%BeginPageSetup
|
||||
BP
|
||||
@@ -7031,8 +7038,8 @@ are assigned empty)-.1 F -.25(va)144 672 S 2.51(lues. The).25 F .011
|
||||
1.891(pecial meaning for the ne).15 F 1.89
|
||||
(xt character read and for line continuation.)-.15 F
|
||||
(Options, if supplied, ha)144 696 Q .3 -.15(ve t)-.2 H(he follo).15 E
|
||||
(wing meanings:)-.25 E(GNU Bash-4.1)72 768 Q(2009 October 9)142.905 E
|
||||
(59)192.895 E 0 Cg EP
|
||||
(wing meanings:)-.25 E(GNU Bash-4.1)72 768 Q(2009 October 16)140.405 E
|
||||
(59)190.395 E 0 Cg EP
|
||||
%%Page: 60 60
|
||||
%%BeginPageSetup
|
||||
BP
|
||||
@@ -7158,7 +7165,7 @@ E F0 .246(or the e)2.986 F .246(xit status of the last command e)-.15 F
|
||||
144 686.4 Q F1(set)108 703.2 Q F0([)2.5 E F1
|
||||
(\255\255abefhkmnptuvxBCEHPT)A F0 2.5(][)C F1<ad6f>-2.5 E F2(option)2.5
|
||||
E F0 2.5(][)C F2(ar)-2.5 E(g)-.37 E F0(...])2.5 E(GNU Bash-4.1)72 768 Q
|
||||
(2009 October 9)142.905 E(60)192.895 E 0 Cg EP
|
||||
(2009 October 16)140.405 E(60)190.395 E 0 Cg EP
|
||||
%%Page: 61 61
|
||||
%%BeginPageSetup
|
||||
BP
|
||||
@@ -7264,7 +7271,7 @@ F0(.)A F1(err)184 624 Q(exit)-.18 E F0(Same as)11.31 E F1<ad65>2.5 E F0
|
||||
/Courier@0 SF(IGNOREEOF=10)4.157 E F0 1.657(had been e)4.157 F -.15(xe)
|
||||
-.15 G(cuted).15 E(\(see)224 720 Q F1(Shell V)2.5 E(ariables)-.92 E F0
|
||||
(abo)2.5 E -.15(ve)-.15 G(\).).15 E(GNU Bash-4.1)72 768 Q
|
||||
(2009 October 9)142.905 E(61)192.895 E 0 Cg EP
|
||||
(2009 October 16)140.405 E(61)190.395 E 0 Cg EP
|
||||
%%Page: 62 62
|
||||
%%BeginPageSetup
|
||||
BP
|
||||
@@ -7361,8 +7368,8 @@ F 3.339(vironment. The)-.4 F F1(ERR)3.338 E F0 .838
|
||||
<ad48>144 702 Q F0(Enable)26.52 E F1(!)3.031 E F0 .531
|
||||
(style history substitution.)5.531 F .531(This option is on by def)5.531
|
||||
F .532(ault when the shell is inter)-.1 F(-)-.2 E(acti)184 714 Q -.15
|
||||
(ve)-.25 G(.).15 E(GNU Bash-4.1)72 768 Q(2009 October 9)142.905 E(62)
|
||||
192.895 E 0 Cg EP
|
||||
(ve)-.25 G(.).15 E(GNU Bash-4.1)72 768 Q(2009 October 16)140.405 E(62)
|
||||
190.395 E 0 Cg EP
|
||||
%%Page: 63 63
|
||||
%%BeginPageSetup
|
||||
BP
|
||||
@@ -7480,7 +7487,7 @@ F1(cdable_v)144 622.8 Q(ars)-.1 E F0 .155(If set, an ar)184 634.8 R .155
|
||||
2.08(xists before trying to)-.15 F -.15(exe)184 730.8 S(cute it.).15 E
|
||||
(If a hashed command no longer e)5 E
|
||||
(xists, a normal path search is performed.)-.15 E(GNU Bash-4.1)72 768 Q
|
||||
(2009 October 9)142.905 E(63)192.895 E 0 Cg EP
|
||||
(2009 October 16)140.405 E(63)190.395 E 0 Cg EP
|
||||
%%Page: 64 64
|
||||
%%BeginPageSetup
|
||||
BP
|
||||
@@ -7585,7 +7592,7 @@ Q(ault.)-.1 E F1(globstar)144 660 Q F0 .178(If set, the pattern)5 F F1
|
||||
3.797(,o)C 1.297(nly directories)-3.797 F(and subdirectories match.)184
|
||||
684 Q F1(gnu_errfmt)144 696 Q F0(If set, shell error messages are writt\
|
||||
en in the standard GNU error message format.)184 708 Q(GNU Bash-4.1)72
|
||||
768 Q(2009 October 9)142.905 E(64)192.895 E 0 Cg EP
|
||||
768 Q(2009 October 16)140.405 E(64)190.395 E 0 Cg EP
|
||||
%%Page: 65 65
|
||||
%%BeginPageSetup
|
||||
BP
|
||||
@@ -7678,7 +7685,7 @@ F1(shift_v)144 696 Q(erbose)-.1 E F0 .501(If set, the)184 708 R F1
|
||||
(shift)3.001 E F0 -.2(bu)3.001 G .501
|
||||
(iltin prints an error message when the shift count e).2 F .502
|
||||
(xceeds the number)-.15 F(of positional parameters.)184 720 Q
|
||||
(GNU Bash-4.1)72 768 Q(2009 October 9)142.905 E(65)192.895 E 0 Cg EP
|
||||
(GNU Bash-4.1)72 768 Q(2009 October 16)140.405 E(65)190.395 E 0 Cg EP
|
||||
%%Page: 66 66
|
||||
%%BeginPageSetup
|
||||
BP
|
||||
@@ -7779,7 +7786,7 @@ F .884(the \214rst)3.384 F(ar)180 568.8 Q .875(gument is e)-.18 F
|
||||
664.8 Q -.15(ve)-.15 G(.).15 E F1(times)108 681.6 Q F0 1.229(Print the \
|
||||
accumulated user and system times for the shell and for processes run f\
|
||||
rom the shell.)13.23 F(The return status is 0.)144 693.6 Q(GNU Bash-4.1)
|
||||
72 768 Q(2009 October 9)142.905 E(66)192.895 E 0 Cg EP
|
||||
72 768 Q(2009 October 16)140.405 E(66)190.395 E 0 Cg EP
|
||||
%%Page: 67 67
|
||||
%%BeginPageSetup
|
||||
BP
|
||||
@@ -7931,7 +7938,7 @@ F .498(resource is printed, unless the)144 663.6 R F1<ad48>2.999 E F0
|
||||
<ad61>144 687.6 Q F0(All current limits are reported)25.3 E F1<ad62>144
|
||||
699.6 Q F0(The maximum sock)24.74 E(et b)-.1 E(uf)-.2 E(fer size)-.25 E
|
||||
F1<ad63>144 711.6 Q F0(The maximum size of core \214les created)25.86 E
|
||||
(GNU Bash-4.1)72 768 Q(2009 October 9)142.905 E(67)192.895 E 0 Cg EP
|
||||
(GNU Bash-4.1)72 768 Q(2009 October 16)140.405 E(67)190.395 E 0 Cg EP
|
||||
%%Page: 68 68
|
||||
%%BeginPageSetup
|
||||
BP
|
||||
@@ -8049,7 +8056,7 @@ E F0 4.397(,o)C 4.397(rt)-4.397 G(he)-4.397 E F1<ad72>4.397 E F0 1.897
|
||||
(bash)2.5 E F0(with the e)2.5 E(xception that the follo)-.15 E
|
||||
(wing are disallo)-.25 E(wed or not performed:)-.25 E 32.5<8363>108
|
||||
717.6 S(hanging directories with)-32.5 E F1(cd)2.5 E F0(GNU Bash-4.1)72
|
||||
768 Q(2009 October 9)142.905 E(68)192.895 E 0 Cg EP
|
||||
768 Q(2009 October 16)140.405 E(68)190.395 E 0 Cg EP
|
||||
%%Page: 69 69
|
||||
%%BeginPageSetup
|
||||
BP
|
||||
@@ -8126,8 +8133,8 @@ F F1(bash)8.125 E F0 10.625(.T)C 5.625(he latest v)-10.625 F 5.625
|
||||
(.)A .41(Once you ha)108 727.2 R .71 -.15(ve d)-.2 H .41
|
||||
(etermined that a b).15 F .41(ug actually e)-.2 F .411(xists, use the)
|
||||
-.15 F F4(bashb)3.181 E(ug)-.2 E F0 .411(command to submit a b)3.131 F
|
||||
.411(ug report.)-.2 F(If)5.411 E(GNU Bash-4.1)72 768 Q(2009 October 9)
|
||||
142.905 E(69)192.895 E 0 Cg EP
|
||||
.411(ug report.)-.2 F(If)5.411 E(GNU Bash-4.1)72 768 Q(2009 October 16)
|
||||
140.405 E(69)190.395 E 0 Cg EP
|
||||
%%Page: 70 70
|
||||
%%BeginPageSetup
|
||||
BP
|
||||
@@ -8167,8 +8174,8 @@ ommands between parentheses to force it into a)-.25 F
|
||||
(subshell, which may be stopped as a unit.)108 355.2 Q(Array v)108 372 Q
|
||||
(ariables may not \(yet\) be e)-.25 E(xported.)-.15 E
|
||||
(There may be only one acti)108 388.8 Q .3 -.15(ve c)-.25 H
|
||||
(oprocess at a time.).15 E(GNU Bash-4.1)72 768 Q(2009 October 9)142.905
|
||||
E(70)192.895 E 0 Cg EP
|
||||
(oprocess at a time.).15 E(GNU Bash-4.1)72 768 Q(2009 October 16)140.405
|
||||
E(70)190.395 E 0 Cg EP
|
||||
%%Trailer
|
||||
end
|
||||
%%EOF
|
||||
|
||||
Binary file not shown.
+13
-8
@@ -1,6 +1,6 @@
|
||||
<HTML>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<!-- Created on October, 12 2009 by texi2html 1.64 -->
|
||||
<!-- Created on November, 9 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.1, 9 October 2009).
|
||||
the Bash shell (version 4.1, 16 October 2009).
|
||||
</P><P>
|
||||
|
||||
This is Edition 4.1, last updated 9 October 2009,
|
||||
This is Edition 4.1, last updated 16 October 2009,
|
||||
of <CITE>The GNU Bash Reference Manual</CITE>,
|
||||
for <CODE>Bash</CODE>, Version 4.1.
|
||||
</P><P>
|
||||
@@ -4741,7 +4741,7 @@ parent.
|
||||
<DD><A NAME="IDX101"></A>
|
||||
<TABLE><tr><td> </td><td class=example><pre>mapfile [-n <VAR>count</VAR>] [-O <VAR>origin</VAR>] [-s <VAR>count</VAR>] [-t] [-u <VAR>fd</VAR>] [
|
||||
-C <VAR>callback</VAR>] [-c <VAR>quantum</VAR>] [<VAR>array</VAR>]
|
||||
</pre></td></tr></table>Read lines from the standard input into array variable <VAR>array</VAR>,
|
||||
</pre></td></tr></table>Read lines from the standard input into the indexed array variable <VAR>array</VAR>,
|
||||
or from file descriptor <VAR>fd</VAR>
|
||||
if the <SAMP>`-u'</SAMP> option is supplied.
|
||||
The variable <CODE>MAPFILE</CODE> is the default <VAR>array</VAR>.
|
||||
@@ -4780,7 +4780,8 @@ before assigning to it.
|
||||
</P><P>
|
||||
|
||||
<CODE>mapfile</CODE> returns successfully unless an invalid option or option
|
||||
argument is supplied, or <VAR>array</VAR> is invalid or unassignable.
|
||||
argument is supplied, <VAR>array</VAR> is invalid or unassignable, or <VAR>array</VAR>
|
||||
is not an indexed array.
|
||||
</P><P>
|
||||
|
||||
<DT><CODE>printf</CODE>
|
||||
@@ -4916,7 +4917,7 @@ The exit status is greater than 128 if the timeout is exceeded.
|
||||
<DD><A NAME="IDX104"></A>
|
||||
<TABLE><tr><td> </td><td class=example><pre>readarray [-n <VAR>count</VAR>] [-O <VAR>origin</VAR>] [-s <VAR>count</VAR>] [-t] [-u <VAR>fd</VAR>] [
|
||||
-C <VAR>callback</VAR>] [-c <VAR>quantum</VAR>] [<VAR>array</VAR>]
|
||||
</pre></td></tr></table>Read lines from the standard input into array variable <VAR>array</VAR>,
|
||||
</pre></td></tr></table>Read lines from the standard input into the indexed array variable <VAR>array</VAR>,
|
||||
or from file descriptor <VAR>fd</VAR>
|
||||
if the <SAMP>`-u'</SAMP> option is supplied.
|
||||
<P>
|
||||
@@ -7550,6 +7551,10 @@ If the <VAR>file</VAR> argument to one of the primaries is one of
|
||||
descriptor 0, 1, or 2, respectively, is checked.
|
||||
</P><P>
|
||||
|
||||
When used with <SAMP>`[['</SAMP>, The <SAMP>`<'</SAMP> and <SAMP>`>'</SAMP> operators sort
|
||||
lexicographically using the current locale.
|
||||
</P><P>
|
||||
|
||||
Unless otherwise specified, primaries that operate on files follow symbolic
|
||||
links and operate on the target of the link, rather than the link itself.
|
||||
</P><P>
|
||||
@@ -16043,7 +16048,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>October, 12 2009</I>
|
||||
This document was generated by <I>Chet Ramey</I> on <I>November, 9 2009</I>
|
||||
using <A HREF="http://www.mathematik.uni-kl.de/~obachman/Texi2html
|
||||
"><I>texi2html</I></A>
|
||||
<P></P>
|
||||
@@ -16205,7 +16210,7 @@ the following structure:
|
||||
<BR>
|
||||
<FONT SIZE="-1">
|
||||
This document was generated
|
||||
by <I>Chet Ramey</I> on <I>October, 12 2009</I>
|
||||
by <I>Chet Ramey</I> on <I>November, 9 2009</I>
|
||||
using <A HREF="http://www.mathematik.uni-kl.de/~obachman/Texi2html
|
||||
"><I>texi2html</I></A>
|
||||
|
||||
|
||||
+13
-13
@@ -1,4 +1,4 @@
|
||||
This is TeX, Version 3.141592 (Web2C 7.5.4) (format=tex 2008.12.11) 12 OCT 2009 10:07
|
||||
This is TeX, Version 3.141592 (Web2C 7.5.4) (format=tex 2008.12.11) 9 NOV 2009 14:08
|
||||
**/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]:
|
||||
@@ -206,7 +206,7 @@ m , @texttt vi-move[]@textrm , @texttt vi-command[]@textrm , and
|
||||
.etc.
|
||||
|
||||
[42] [43] [44] [45] [46]
|
||||
Overfull \hbox (172.34125pt too wide) in paragraph at lines 3722--3722
|
||||
Overfull \hbox (172.34125pt too wide) in paragraph at lines 3723--3723
|
||||
[]@texttt read [-ers] [-a @textttsl aname@texttt ] [-d @textttsl de-lim@texttt
|
||||
] [-i @textttsl text@texttt ] [-n @textttsl nchars@texttt ] [-N @textttsl ncha
|
||||
rs@texttt ] [-p @textttsl prompt@texttt ] [-t @textttsl time-
|
||||
@@ -220,7 +220,7 @@ rs@texttt ] [-p @textttsl prompt@texttt ] [-t @textttsl time-
|
||||
.etc.
|
||||
|
||||
[47] [48] [49] [50] [51] [52] [53] [54] [55]
|
||||
Underfull \hbox (badness 2573) in paragraph at lines 4407--4411
|
||||
Underfull \hbox (badness 2573) in paragraph at lines 4408--4412
|
||||
[]@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 4407--4411
|
||||
|
||||
[56] [57] [58] Chapter 5 [59] [60] [61] [62] [63] [64] [65] [66] [67] [68]
|
||||
[69] Chapter 6 [70]
|
||||
Overfull \hbox (51.96864pt too wide) in paragraph at lines 5275--5275
|
||||
Overfull \hbox (51.96864pt too wide) in paragraph at lines 5276--5276
|
||||
[]@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 5276--5276
|
||||
Overfull \hbox (76.23077pt too wide) in paragraph at lines 5277--5277
|
||||
[]@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 5276--5276
|
||||
.etc.
|
||||
|
||||
|
||||
Overfull \hbox (34.72258pt too wide) in paragraph at lines 5277--5277
|
||||
Overfull \hbox (34.72258pt too wide) in paragraph at lines 5278--5278
|
||||
[]@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 5451--5453
|
||||
Underfull \hbox (badness 2245) in paragraph at lines 5452--5454
|
||||
[]@textrm When a lo-gin shell ex-its, Bash reads and ex-e-cutes com-mands from
|
||||
the file
|
||||
|
||||
@@ -289,8 +289,8 @@ the file
|
||||
.@textrm n
|
||||
.etc.
|
||||
|
||||
[73] [74] [75] [76] [77] [78] [79] [80] [81] [82] [83] [84] [85]
|
||||
Underfull \hbox (badness 2521) in paragraph at lines 6595--6598
|
||||
[73] [74] [75] [76] [77] [78] [79] [80] [81] [82] [83] [84] [85] [86]
|
||||
Underfull \hbox (badness 2521) in paragraph at lines 6599--6602
|
||||
@textrm `@texttt --enable-strict-posix-default[]@textrm '[] to @texttt configur
|
||||
e[] @textrm when build-ing (see Sec-tion 10.8
|
||||
|
||||
@@ -302,7 +302,7 @@ e[] @textrm when build-ing (see Sec-tion 10.8
|
||||
.@texttt n
|
||||
.etc.
|
||||
|
||||
Chapter 7 [86] [87] [88] [89] [90] [91]
|
||||
Chapter 7 [87] [88] [89] [90] [91]
|
||||
(/Users/chet/src/bash/src/lib/readline/doc/rluser.texi Chapter 8 [92] [93]
|
||||
[94] [95] [96] [97] [98]
|
||||
Underfull \hbox (badness 5231) in paragraph at lines 535--551
|
||||
@@ -358,7 +358,7 @@ Underfull \hbox (badness 2753) in paragraph at lines 1899--1902
|
||||
|
||||
[119]) (/Users/chet/src/bash/src/lib/readline/doc/hsuser.texi Chapter 9
|
||||
[120] [121] [122] [123] [124]) Chapter 10 [125] [126] [127] [128] [129]
|
||||
Underfull \hbox (badness 2772) in paragraph at lines 7196--7200
|
||||
Underfull \hbox (badness 2772) in paragraph at lines 7200--7204
|
||||
[]@textrm Enable sup-port for large files (@texttt http://www.sas.com/standard
|
||||
s/large_
|
||||
|
||||
@@ -378,10 +378,10 @@ s/large_
|
||||
Here is how much of TeX's memory you used:
|
||||
2078 strings out of 97980
|
||||
28503 string characters out of 1221004
|
||||
65668 words of memory out of 1500000
|
||||
65670 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 (164 pages, 663028 bytes).
|
||||
Output written on bashref.dvi (164 pages, 663212 bytes).
|
||||
|
||||
Binary file not shown.
+581
-576
File diff suppressed because it is too large
Load Diff
+358
-357
File diff suppressed because it is too large
Load Diff
+28
-26
@@ -1,6 +1,6 @@
|
||||
%!PS-Adobe-3.0
|
||||
%%Creator: groff version 1.19.2
|
||||
%%CreationDate: Mon Oct 12 10:07:24 2009
|
||||
%%CreationDate: Mon Nov 9 14:08:04 2009
|
||||
%%DocumentNeededResources: font Times-Roman
|
||||
%%+ font Times-Bold
|
||||
%%+ font Times-Italic
|
||||
@@ -1413,21 +1413,22 @@ Q F0([)2.5 E F1<ad6e>A F2(count)2.5 E F0 2.5(][)C F1<ad4f>-2.5 E F2
|
||||
-2.5 E F2(origin)2.5 E F0 2.5(][)C F1<ad73>-2.5 E F2(count)2.5 E F0 2.5
|
||||
(][)C F1<ad74>-2.5 E F0 2.5(][)C F1<ad75>-2.5 E F2(fd)2.5 E F0 2.5(][)C
|
||||
F1<ad43>-2.5 E F2(callbac)2.5 E(k)-.2 E F0 2.5(][)C F1<ad63>-2.5 E F2
|
||||
(quantum)2.5 E F0 2.5(][)C F2(arr)-2.5 E(ay)-.15 E F0(])A 1.006
|
||||
(Read lines from the standard input into array v)144 626.4 R(ariable)
|
||||
-.25 E F2(arr)3.506 E(ay)-.15 E F0 3.506(,o).32 G 3.506(rf)-3.506 G
|
||||
1.006(rom \214le descriptor)-3.506 F F2(fd)3.506 E F0 1.005(if the)3.506
|
||||
F F1<ad75>3.505 E F0 1.086(option is supplied.)144 638.4 R 1.086(The v)
|
||||
6.086 F(ariable)-.25 E F1(MAPFILE)3.586 E F0 1.086(is the def)3.586 F
|
||||
(ault)-.1 E F2(arr)3.587 E(ay)-.15 E F0 6.087(.O)C 1.087
|
||||
(ptions, if supplied, ha)-6.087 F 1.387 -.15(ve t)-.2 H(he).15 E(follo)
|
||||
144 650.4 Q(wing meanings:)-.25 E F1<ad6e>144 662.4 Q F0(Cop)24.74 E 2.5
|
||||
(ya)-.1 G 2.5(tm)-2.5 G(ost)-2.5 E F2(count)2.7 E F0 2.5(lines. If)3.18
|
||||
F F2(count)2.5 E F0(is 0, all lines are copied.)2.5 E F1<ad4f>144 674.4
|
||||
Q F0(Be)22.52 E(gin assigning to)-.15 E F2(arr)2.83 E(ay)-.15 E F0
|
||||
(at inde)2.82 E(x)-.15 E F2(origin)2.5 E F0 5(.T).24 G(he def)-5 E
|
||||
(ault inde)-.1 E 2.5(xi)-.15 G 2.5(s0)-2.5 G(.)-2.5 E F1<ad73>144 686.4
|
||||
Q F0(Discard the \214rst)26.41 E F2(count)2.5 E F0(lines read.)2.5 E F1
|
||||
(quantum)2.5 E F0 2.5(][)C F2(arr)-2.5 E(ay)-.15 E F0(])A .351
|
||||
(Read lines from the standard input into the inde)144 626.4 R -.15(xe)
|
||||
-.15 G 2.851(da).15 G .351(rray v)-2.851 F(ariable)-.25 E F2(arr)2.85 E
|
||||
(ay)-.15 E F0 2.85(,o).32 G 2.85(rf)-2.85 G .35(rom \214le descriptor)
|
||||
-2.85 F F2(fd)2.85 E F0 .924(if the)144 638.4 R F1<ad75>3.424 E F0 .924
|
||||
(option is supplied.)3.424 F .925(The v)5.925 F(ariable)-.25 E F1
|
||||
(MAPFILE)3.425 E F0 .925(is the def)3.425 F(ault)-.1 E F2(arr)3.425 E
|
||||
(ay)-.15 E F0 5.925(.O)C .925(ptions, if supplied,)-5.925 F(ha)144 650.4
|
||||
Q .3 -.15(ve t)-.2 H(he follo).15 E(wing meanings:)-.25 E F1<ad6e>144
|
||||
662.4 Q F0(Cop)24.74 E 2.5(ya)-.1 G 2.5(tm)-2.5 G(ost)-2.5 E F2(count)
|
||||
2.7 E F0 2.5(lines. If)3.18 F F2(count)2.5 E F0
|
||||
(is 0, all lines are copied.)2.5 E F1<ad4f>144 674.4 Q F0(Be)22.52 E
|
||||
(gin assigning to)-.15 E F2(arr)2.83 E(ay)-.15 E F0(at inde)2.82 E(x)
|
||||
-.15 E F2(origin)2.5 E F0 5(.T).24 G(he def)-5 E(ault inde)-.1 E 2.5(xi)
|
||||
-.15 G 2.5(s0)-2.5 G(.)-2.5 E F1<ad73>144 686.4 Q F0
|
||||
(Discard the \214rst)26.41 E F2(count)2.5 E F0(lines read.)2.5 E F1
|
||||
<ad74>144 698.4 Q F0(Remo)26.97 E .3 -.15(ve a t)-.15 H
|
||||
(railing line from each line read.).15 E F1<ad75>144 710.4 Q F0
|
||||
(Read lines from \214le descriptor)24.74 E F2(fd)2.5 E F0
|
||||
@@ -1456,16 +1457,17 @@ E F2(callbac)6.22 E(k)-.2 E F0(is)3.72 E -.25(eva)144 136.8 S
|
||||
(ut before the array element is assigned.)-.2 E
|
||||
(If not supplied with an e)144 153.6 Q(xplicit origin,)-.15 E F1
|
||||
(map\214le)2.5 E F0(will clear)2.5 E F2(arr)2.5 E(ay)-.15 E F0
|
||||
(before assigning to it.)2.5 E F1(map\214le)144 170.4 Q F0 .996
|
||||
(returns successfully unless an in)3.496 F -.25(va)-.4 G .996
|
||||
(lid option or option ar).25 F .995(gument is supplied, or)-.18 F F2
|
||||
(arr)3.495 E(ay)-.15 E F0(is)3.495 E(in)144 182.4 Q -.25(va)-.4 G
|
||||
(lid or unassignable.).25 E F1(popd)108 199.2 Q F0<5bad>2.5 E F1(n)A F0
|
||||
2.5(][)C(+)-2.5 E F2(n)A F0 2.5(][)C<ad>-2.5 E F2(n)A F0(])A(Remo)144
|
||||
211.2 Q -.15(ve)-.15 G 2.799(se).15 G .299
|
||||
(ntries from the directory stack.)-2.799 F -.4(Wi)5.299 G .299(th no ar)
|
||||
.4 F .299(guments, remo)-.18 F -.15(ve)-.15 G 2.799(st).15 G .3
|
||||
(he top directory from the)-2.799 F 1.479(stack, and performs a)144
|
||||
(before assigning to it.)2.5 E F1(map\214le)144 170.4 Q F0 1.906
|
||||
(returns successfully unless an in)4.406 F -.25(va)-.4 G 1.905
|
||||
(lid option or option ar).25 F 1.905(gument is supplied,)-.18 F F2(arr)
|
||||
4.405 E(ay)-.15 E F0(is)4.405 E(in)144 182.4 Q -.25(va)-.4 G
|
||||
(lid or unassignable, or if).25 E F2(arr)2.5 E(ay)-.15 E F0
|
||||
(is not an inde)2.5 E -.15(xe)-.15 G 2.5(da).15 G(rray)-2.5 E(.)-.65 E
|
||||
F1(popd)108 199.2 Q F0<5bad>2.5 E F1(n)A F0 2.5(][)C(+)-2.5 E F2(n)A F0
|
||||
2.5(][)C<ad>-2.5 E F2(n)A F0(])A(Remo)144 211.2 Q -.15(ve)-.15 G 2.799
|
||||
(se).15 G .299(ntries from the directory stack.)-2.799 F -.4(Wi)5.299 G
|
||||
.299(th no ar).4 F .299(guments, remo)-.18 F -.15(ve)-.15 G 2.799(st).15
|
||||
G .3(he top directory from the)-2.799 F 1.479(stack, and performs a)144
|
||||
223.2 R F1(cd)3.979 E F0 1.479(to the ne)3.979 F 3.979(wt)-.25 G 1.479
|
||||
(op directory)-3.979 F 6.479(.A)-.65 G -.18(rg)-6.479 G 1.478
|
||||
(uments, if supplied, ha).18 F 1.778 -.15(ve t)-.2 H 1.478(he follo).15
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
%!PS-Adobe-3.0
|
||||
%%Creator: groff version 1.19.2
|
||||
%%CreationDate: Mon Oct 12 10:07:24 2009
|
||||
%%CreationDate: Mon Nov 9 14:08:04 2009
|
||||
%%DocumentNeededResources: font Times-Roman
|
||||
%%+ font Times-Bold
|
||||
%%DocumentSuppliedResources: procset grops 1.19 2
|
||||
|
||||
+1
-1
@@ -1030,7 +1030,7 @@ glob_filename (pathname, flags)
|
||||
dflags |= GX_ALLDIRS|GX_ADDCURDIR;
|
||||
#if 0
|
||||
/* If we want all directories (dflags & GX_ALLDIRS) and we're not
|
||||
being called recursively as something like `echo [star][star]/[star].o'
|
||||
being called recursively as something like `echo **/*.o'
|
||||
((flags & GX_ALLDIRS) == 0), we want to prevent glob_vector from
|
||||
adding a null directory name to the front of the temp_results
|
||||
array. We turn off ADDCURDIR if not called recursively and
|
||||
|
||||
@@ -1,674 +0,0 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU General Public License is a free, copyleft license for
|
||||
software and other kinds of works.
|
||||
|
||||
The licenses for most software and other practical works are designed
|
||||
to take away your freedom to share and change the works. By contrast,
|
||||
the GNU General Public License is intended to guarantee your freedom to
|
||||
share and change all versions of a program--to make sure it remains free
|
||||
software for all its users. We, the Free Software Foundation, use the
|
||||
GNU General Public License for most of our software; it applies also to
|
||||
any other work released this way by its authors. You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
them if you wish), that you receive source code or can get it if you
|
||||
want it, that you can change the software or use pieces of it in new
|
||||
free programs, and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to prevent others from denying you
|
||||
these rights or asking you to surrender the rights. Therefore, you have
|
||||
certain responsibilities if you distribute copies of the software, or if
|
||||
you modify it: responsibilities to respect the freedom of others.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must pass on to the recipients the same
|
||||
freedoms that you received. You must make sure that they, too, receive
|
||||
or can get the source code. And you must show them these terms so they
|
||||
know their rights.
|
||||
|
||||
Developers that use the GNU GPL protect your rights with two steps:
|
||||
(1) assert copyright on the software, and (2) offer you this License
|
||||
giving you legal permission to copy, distribute and/or modify it.
|
||||
|
||||
For the developers' and authors' protection, the GPL clearly explains
|
||||
that there is no warranty for this free software. For both users' and
|
||||
authors' sake, the GPL requires that modified versions be marked as
|
||||
changed, so that their problems will not be attributed erroneously to
|
||||
authors of previous versions.
|
||||
|
||||
Some devices are designed to deny users access to install or run
|
||||
modified versions of the software inside them, although the manufacturer
|
||||
can do so. This is fundamentally incompatible with the aim of
|
||||
protecting users' freedom to change the software. The systematic
|
||||
pattern of such abuse occurs in the area of products for individuals to
|
||||
use, which is precisely where it is most unacceptable. Therefore, we
|
||||
have designed this version of the GPL to prohibit the practice for those
|
||||
products. If such problems arise substantially in other domains, we
|
||||
stand ready to extend this provision to those domains in future versions
|
||||
of the GPL, as needed to protect the freedom of users.
|
||||
|
||||
Finally, every program is threatened constantly by software patents.
|
||||
States should not allow patents to restrict development and use of
|
||||
software on general-purpose computers, but in those that do, we wish to
|
||||
avoid the special danger that patents applied to a free program could
|
||||
make it effectively proprietary. To prevent this, the GPL assures that
|
||||
patents cannot be used to render the program non-free.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
"This License" refers to version 3 of the GNU General Public License.
|
||||
|
||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||
works, such as semiconductor masks.
|
||||
|
||||
"The Program" refers to any copyrightable work licensed under this
|
||||
License. Each licensee is addressed as "you". "Licensees" and
|
||||
"recipients" may be individuals or organizations.
|
||||
|
||||
To "modify" a work means to copy from or adapt all or part of the work
|
||||
in a fashion requiring copyright permission, other than the making of an
|
||||
exact copy. The resulting work is called a "modified version" of the
|
||||
earlier work or a work "based on" the earlier work.
|
||||
|
||||
A "covered work" means either the unmodified Program or a work based
|
||||
on the Program.
|
||||
|
||||
To "propagate" a work means to do anything with it that, without
|
||||
permission, would make you directly or secondarily liable for
|
||||
infringement under applicable copyright law, except executing it on a
|
||||
computer or modifying a private copy. Propagation includes copying,
|
||||
distribution (with or without modification), making available to the
|
||||
public, and in some countries other activities as well.
|
||||
|
||||
To "convey" a work means any kind of propagation that enables other
|
||||
parties to make or receive copies. Mere interaction with a user through
|
||||
a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays "Appropriate Legal Notices"
|
||||
to the extent that it includes a convenient and prominently visible
|
||||
feature that (1) displays an appropriate copyright notice, and (2)
|
||||
tells the user that there is no warranty for the work (except to the
|
||||
extent that warranties are provided), that licensees may convey the
|
||||
work under this License, and how to view a copy of this License. If
|
||||
the interface presents a list of user commands or options, such as a
|
||||
menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
|
||||
The "source code" for a work means the preferred form of the work
|
||||
for making modifications to it. "Object code" means any non-source
|
||||
form of a work.
|
||||
|
||||
A "Standard Interface" means an interface that either is an official
|
||||
standard defined by a recognized standards body, or, in the case of
|
||||
interfaces specified for a particular programming language, one that
|
||||
is widely used among developers working in that language.
|
||||
|
||||
The "System Libraries" of an executable work include anything, other
|
||||
than the work as a whole, that (a) is included in the normal form of
|
||||
packaging a Major Component, but which is not part of that Major
|
||||
Component, and (b) serves only to enable use of the work with that
|
||||
Major Component, or to implement a Standard Interface for which an
|
||||
implementation is available to the public in source code form. A
|
||||
"Major Component", in this context, means a major essential component
|
||||
(kernel, window system, and so on) of the specific operating system
|
||||
(if any) on which the executable work runs, or a compiler used to
|
||||
produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The "Corresponding Source" for a work in object code form means all
|
||||
the source code needed to generate, install, and (for an executable
|
||||
work) run the object code and to modify the work, including scripts to
|
||||
control those activities. However, it does not include the work's
|
||||
System Libraries, or general-purpose tools or generally available free
|
||||
programs which are used unmodified in performing those activities but
|
||||
which are not part of the work. For example, Corresponding Source
|
||||
includes interface definition files associated with source files for
|
||||
the work, and the source code for shared libraries and dynamically
|
||||
linked subprograms that the work is specifically designed to require,
|
||||
such as by intimate data communication or control flow between those
|
||||
subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users
|
||||
can regenerate automatically from other parts of the Corresponding
|
||||
Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that
|
||||
same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
|
||||
All rights granted under this License are granted for the term of
|
||||
copyright on the Program, and are irrevocable provided the stated
|
||||
conditions are met. This License explicitly affirms your unlimited
|
||||
permission to run the unmodified Program. The output from running a
|
||||
covered work is covered by this License only if the output, given its
|
||||
content, constitutes a covered work. This License acknowledges your
|
||||
rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not
|
||||
convey, without conditions so long as your license otherwise remains
|
||||
in force. You may convey covered works to others for the sole purpose
|
||||
of having them make modifications exclusively for you, or provide you
|
||||
with facilities for running those works, provided that you comply with
|
||||
the terms of this License in conveying all material for which you do
|
||||
not control copyright. Those thus making or running the covered works
|
||||
for you must do so exclusively on your behalf, under your direction
|
||||
and control, on terms that prohibit them from making any copies of
|
||||
your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under
|
||||
the conditions stated below. Sublicensing is not allowed; section 10
|
||||
makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
|
||||
No covered work shall be deemed part of an effective technological
|
||||
measure under any applicable law fulfilling obligations under article
|
||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||
similar laws prohibiting or restricting circumvention of such
|
||||
measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid
|
||||
circumvention of technological measures to the extent such circumvention
|
||||
is effected by exercising rights under this License with respect to
|
||||
the covered work, and you disclaim any intention to limit operation or
|
||||
modification of the work as a means of enforcing, against the work's
|
||||
users, your or third parties' legal rights to forbid circumvention of
|
||||
technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
|
||||
You may convey verbatim copies of the Program's source code as you
|
||||
receive it, in any medium, provided that you conspicuously and
|
||||
appropriately publish on each copy an appropriate copyright notice;
|
||||
keep intact all notices stating that this License and any
|
||||
non-permissive terms added in accord with section 7 apply to the code;
|
||||
keep intact all notices of the absence of any warranty; and give all
|
||||
recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey,
|
||||
and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
|
||||
You may convey a work based on the Program, or the modifications to
|
||||
produce it from the Program, in the form of source code under the
|
||||
terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified
|
||||
it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is
|
||||
released under this License and any conditions added under section
|
||||
7. This requirement modifies the requirement in section 4 to
|
||||
"keep intact all notices".
|
||||
|
||||
c) You must license the entire work, as a whole, under this
|
||||
License to anyone who comes into possession of a copy. This
|
||||
License will therefore apply, along with any applicable section 7
|
||||
additional terms, to the whole of the work, and all its parts,
|
||||
regardless of how they are packaged. This License gives no
|
||||
permission to license the work in any other way, but it does not
|
||||
invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display
|
||||
Appropriate Legal Notices; however, if the Program has interactive
|
||||
interfaces that do not display Appropriate Legal Notices, your
|
||||
work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent
|
||||
works, which are not by their nature extensions of the covered work,
|
||||
and which are not combined with it such as to form a larger program,
|
||||
in or on a volume of a storage or distribution medium, is called an
|
||||
"aggregate" if the compilation and its resulting copyright are not
|
||||
used to limit the access or legal rights of the compilation's users
|
||||
beyond what the individual works permit. Inclusion of a covered work
|
||||
in an aggregate does not cause this License to apply to the other
|
||||
parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
|
||||
You may convey a covered work in object code form under the terms
|
||||
of sections 4 and 5, provided that you also convey the
|
||||
machine-readable Corresponding Source under the terms of this License,
|
||||
in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by the
|
||||
Corresponding Source fixed on a durable physical medium
|
||||
customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by a
|
||||
written offer, valid for at least three years and valid for as
|
||||
long as you offer spare parts or customer support for that product
|
||||
model, to give anyone who possesses the object code either (1) a
|
||||
copy of the Corresponding Source for all the software in the
|
||||
product that is covered by this License, on a durable physical
|
||||
medium customarily used for software interchange, for a price no
|
||||
more than your reasonable cost of physically performing this
|
||||
conveying of source, or (2) access to copy the
|
||||
Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the
|
||||
written offer to provide the Corresponding Source. This
|
||||
alternative is allowed only occasionally and noncommercially, and
|
||||
only if you received the object code with such an offer, in accord
|
||||
with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated
|
||||
place (gratis or for a charge), and offer equivalent access to the
|
||||
Corresponding Source in the same way through the same place at no
|
||||
further charge. You need not require recipients to copy the
|
||||
Corresponding Source along with the object code. If the place to
|
||||
copy the object code is a network server, the Corresponding Source
|
||||
may be on a different server (operated by you or a third party)
|
||||
that supports equivalent copying facilities, provided you maintain
|
||||
clear directions next to the object code saying where to find the
|
||||
Corresponding Source. Regardless of what server hosts the
|
||||
Corresponding Source, you remain obligated to ensure that it is
|
||||
available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided
|
||||
you inform other peers where the object code and Corresponding
|
||||
Source of the work are being offered to the general public at no
|
||||
charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded
|
||||
from the Corresponding Source as a System Library, need not be
|
||||
included in conveying the object code work.
|
||||
|
||||
A "User Product" is either (1) a "consumer product", which means any
|
||||
tangible personal property which is normally used for personal, family,
|
||||
or household purposes, or (2) anything designed or sold for incorporation
|
||||
into a dwelling. In determining whether a product is a consumer product,
|
||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||
product received by a particular user, "normally used" refers to a
|
||||
typical or common use of that class of product, regardless of the status
|
||||
of the particular user or of the way in which the particular user
|
||||
actually uses, or expects or is expected to use, the product. A product
|
||||
is a consumer product regardless of whether the product has substantial
|
||||
commercial, industrial or non-consumer uses, unless such uses represent
|
||||
the only significant mode of use of the product.
|
||||
|
||||
"Installation Information" for a User Product means any methods,
|
||||
procedures, authorization keys, or other information required to install
|
||||
and execute modified versions of a covered work in that User Product from
|
||||
a modified version of its Corresponding Source. The information must
|
||||
suffice to ensure that the continued functioning of the modified object
|
||||
code is in no case prevented or interfered with solely because
|
||||
modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or
|
||||
specifically for use in, a User Product, and the conveying occurs as
|
||||
part of a transaction in which the right of possession and use of the
|
||||
User Product is transferred to the recipient in perpetuity or for a
|
||||
fixed term (regardless of how the transaction is characterized), the
|
||||
Corresponding Source conveyed under this section must be accompanied
|
||||
by the Installation Information. But this requirement does not apply
|
||||
if neither you nor any third party retains the ability to install
|
||||
modified object code on the User Product (for example, the work has
|
||||
been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a
|
||||
requirement to continue to provide support service, warranty, or updates
|
||||
for a work that has been modified or installed by the recipient, or for
|
||||
the User Product in which it has been modified or installed. Access to a
|
||||
network may be denied when the modification itself materially and
|
||||
adversely affects the operation of the network or violates the rules and
|
||||
protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided,
|
||||
in accord with this section must be in a format that is publicly
|
||||
documented (and with an implementation available to the public in
|
||||
source code form), and must require no special password or key for
|
||||
unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
|
||||
"Additional permissions" are terms that supplement the terms of this
|
||||
License by making exceptions from one or more of its conditions.
|
||||
Additional permissions that are applicable to the entire Program shall
|
||||
be treated as though they were included in this License, to the extent
|
||||
that they are valid under applicable law. If additional permissions
|
||||
apply only to part of the Program, that part may be used separately
|
||||
under those permissions, but the entire Program remains governed by
|
||||
this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option
|
||||
remove any additional permissions from that copy, or from any part of
|
||||
it. (Additional permissions may be written to require their own
|
||||
removal in certain cases when you modify the work.) You may place
|
||||
additional permissions on material, added by you to a covered work,
|
||||
for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you
|
||||
add to a covered work, you may (if authorized by the copyright holders of
|
||||
that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the
|
||||
terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or
|
||||
author attributions in that material or in the Appropriate Legal
|
||||
Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or
|
||||
requiring that modified versions of such material be marked in
|
||||
reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or
|
||||
authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some
|
||||
trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that
|
||||
material by anyone who conveys the material (or modified versions of
|
||||
it) with contractual assumptions of liability to the recipient, for
|
||||
any liability that these contractual assumptions directly impose on
|
||||
those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered "further
|
||||
restrictions" within the meaning of section 10. If the Program as you
|
||||
received it, or any part of it, contains a notice stating that it is
|
||||
governed by this License along with a term that is a further
|
||||
restriction, you may remove that term. If a license document contains
|
||||
a further restriction but permits relicensing or conveying under this
|
||||
License, you may add to a covered work material governed by the terms
|
||||
of that license document, provided that the further restriction does
|
||||
not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you
|
||||
must place, in the relevant source files, a statement of the
|
||||
additional terms that apply to those files, or a notice indicating
|
||||
where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the
|
||||
form of a separately written license, or stated as exceptions;
|
||||
the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
|
||||
You may not propagate or modify a covered work except as expressly
|
||||
provided under this License. Any attempt otherwise to propagate or
|
||||
modify it is void, and will automatically terminate your rights under
|
||||
this License (including any patent licenses granted under the third
|
||||
paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your
|
||||
license from a particular copyright holder is reinstated (a)
|
||||
provisionally, unless and until the copyright holder explicitly and
|
||||
finally terminates your license, and (b) permanently, if the copyright
|
||||
holder fails to notify you of the violation by some reasonable means
|
||||
prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is
|
||||
reinstated permanently if the copyright holder notifies you of the
|
||||
violation by some reasonable means, this is the first time you have
|
||||
received notice of violation of this License (for any work) from that
|
||||
copyright holder, and you cure the violation prior to 30 days after
|
||||
your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the
|
||||
licenses of parties who have received copies or rights from you under
|
||||
this License. If your rights have been terminated and not permanently
|
||||
reinstated, you do not qualify to receive new licenses for the same
|
||||
material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
|
||||
You are not required to accept this License in order to receive or
|
||||
run a copy of the Program. Ancillary propagation of a covered work
|
||||
occurring solely as a consequence of using peer-to-peer transmission
|
||||
to receive a copy likewise does not require acceptance. However,
|
||||
nothing other than this License grants you permission to propagate or
|
||||
modify any covered work. These actions infringe copyright if you do
|
||||
not accept this License. Therefore, by modifying or propagating a
|
||||
covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
|
||||
Each time you convey a covered work, the recipient automatically
|
||||
receives a license from the original licensors, to run, modify and
|
||||
propagate that work, subject to this License. You are not responsible
|
||||
for enforcing compliance by third parties with this License.
|
||||
|
||||
An "entity transaction" is a transaction transferring control of an
|
||||
organization, or substantially all assets of one, or subdividing an
|
||||
organization, or merging organizations. If propagation of a covered
|
||||
work results from an entity transaction, each party to that
|
||||
transaction who receives a copy of the work also receives whatever
|
||||
licenses to the work the party's predecessor in interest had or could
|
||||
give under the previous paragraph, plus a right to possession of the
|
||||
Corresponding Source of the work from the predecessor in interest, if
|
||||
the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the
|
||||
rights granted or affirmed under this License. For example, you may
|
||||
not impose a license fee, royalty, or other charge for exercise of
|
||||
rights granted under this License, and you may not initiate litigation
|
||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||
any patent claim is infringed by making, using, selling, offering for
|
||||
sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
|
||||
A "contributor" is a copyright holder who authorizes use under this
|
||||
License of the Program or a work on which the Program is based. The
|
||||
work thus licensed is called the contributor's "contributor version".
|
||||
|
||||
A contributor's "essential patent claims" are all patent claims
|
||||
owned or controlled by the contributor, whether already acquired or
|
||||
hereafter acquired, that would be infringed by some manner, permitted
|
||||
by this License, of making, using, or selling its contributor version,
|
||||
but do not include claims that would be infringed only as a
|
||||
consequence of further modification of the contributor version. For
|
||||
purposes of this definition, "control" includes the right to grant
|
||||
patent sublicenses in a manner consistent with the requirements of
|
||||
this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||
patent license under the contributor's essential patent claims, to
|
||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||
propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a "patent license" is any express
|
||||
agreement or commitment, however denominated, not to enforce a patent
|
||||
(such as an express permission to practice a patent or covenant not to
|
||||
sue for patent infringement). To "grant" such a patent license to a
|
||||
party means to make such an agreement or commitment not to enforce a
|
||||
patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license,
|
||||
and the Corresponding Source of the work is not available for anyone
|
||||
to copy, free of charge and under the terms of this License, through a
|
||||
publicly available network server or other readily accessible means,
|
||||
then you must either (1) cause the Corresponding Source to be so
|
||||
available, or (2) arrange to deprive yourself of the benefit of the
|
||||
patent license for this particular work, or (3) arrange, in a manner
|
||||
consistent with the requirements of this License, to extend the patent
|
||||
license to downstream recipients. "Knowingly relying" means you have
|
||||
actual knowledge that, but for the patent license, your conveying the
|
||||
covered work in a country, or your recipient's use of the covered work
|
||||
in a country, would infringe one or more identifiable patents in that
|
||||
country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or
|
||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||
covered work, and grant a patent license to some of the parties
|
||||
receiving the covered work authorizing them to use, propagate, modify
|
||||
or convey a specific copy of the covered work, then the patent license
|
||||
you grant is automatically extended to all recipients of the covered
|
||||
work and works based on it.
|
||||
|
||||
A patent license is "discriminatory" if it does not include within
|
||||
the scope of its coverage, prohibits the exercise of, or is
|
||||
conditioned on the non-exercise of one or more of the rights that are
|
||||
specifically granted under this License. You may not convey a covered
|
||||
work if you are a party to an arrangement with a third party that is
|
||||
in the business of distributing software, under which you make payment
|
||||
to the third party based on the extent of your activity of conveying
|
||||
the work, and under which the third party grants, to any of the
|
||||
parties who would receive the covered work from you, a discriminatory
|
||||
patent license (a) in connection with copies of the covered work
|
||||
conveyed by you (or copies made from those copies), or (b) primarily
|
||||
for and in connection with specific products or compilations that
|
||||
contain the covered work, unless you entered into that arrangement,
|
||||
or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting
|
||||
any implied license or other defenses to infringement that may
|
||||
otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
|
||||
If conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot convey a
|
||||
covered work so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you may
|
||||
not convey it at all. For example, if you agree to terms that obligate you
|
||||
to collect a royalty for further conveying from those to whom you convey
|
||||
the Program, the only way you could satisfy both those terms and this
|
||||
License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Use with the GNU Affero General Public License.
|
||||
|
||||
Notwithstanding any other provision of this License, you have
|
||||
permission to link or combine any covered work with a work licensed
|
||||
under version 3 of the GNU Affero General Public License into a single
|
||||
combined work, and to convey the resulting work. The terms of this
|
||||
License will continue to apply to the part which is the covered work,
|
||||
but the special requirements of the GNU Affero General Public License,
|
||||
section 13, concerning interaction through a network will apply to the
|
||||
combination as such.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of
|
||||
the GNU General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the
|
||||
Program specifies that a certain numbered version of the GNU General
|
||||
Public License "or any later version" applies to it, you have the
|
||||
option of following the terms and conditions either of that numbered
|
||||
version or of any later version published by the Free Software
|
||||
Foundation. If the Program does not specify a version number of the
|
||||
GNU General Public License, you may choose any version ever published
|
||||
by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future
|
||||
versions of the GNU General Public License can be used, that proxy's
|
||||
public statement of acceptance of a version permanently authorizes you
|
||||
to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different
|
||||
permissions. However, no additional obligations are imposed on any
|
||||
author or copyright holder as a result of your choosing to follow a
|
||||
later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
|
||||
If the disclaimer of warranty and limitation of liability provided
|
||||
above cannot be given local legal effect according to their terms,
|
||||
reviewing courts shall apply local law that most closely approximates
|
||||
an absolute waiver of all civil liability in connection with the
|
||||
Program, unless a warranty or assumption of liability accompanies a
|
||||
copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
state the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program does terminal interaction, make it output a short
|
||||
notice like this when it starts in an interactive mode:
|
||||
|
||||
<program> Copyright (C) <year> <name of author>
|
||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, your program's commands
|
||||
might be different; for a GUI interface, you would use an "about box".
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school,
|
||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||
For more information on this, and how to apply and follow the GNU GPL, see
|
||||
<http://www.gnu.org/licenses/>.
|
||||
|
||||
The GNU General Public License does not permit incorporating your program
|
||||
into proprietary programs. If your program is a subroutine library, you
|
||||
may consider it more useful to permit linking proprietary applications with
|
||||
the library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License. But first, please read
|
||||
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../COPYING
|
||||
@@ -1,54 +0,0 @@
|
||||
/* ansi_stdlib.h -- An ANSI Standard stdlib.h. */
|
||||
/* A minimal stdlib.h containing extern declarations for those functions
|
||||
that bash uses. */
|
||||
|
||||
/* Copyright (C) 1993 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU Bash, the Bourne Again SHell.
|
||||
|
||||
Bash is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Bash is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Bash. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#if !defined (_STDLIB_H_)
|
||||
#define _STDLIB_H_ 1
|
||||
|
||||
/* String conversion functions. */
|
||||
extern int atoi ();
|
||||
|
||||
extern double atof ();
|
||||
extern double strtod ();
|
||||
|
||||
/* Memory allocation functions. */
|
||||
/* Generic pointer type. */
|
||||
#ifndef PTR_T
|
||||
|
||||
#if defined (__STDC__)
|
||||
# define PTR_T void *
|
||||
#else
|
||||
# define PTR_T char *
|
||||
#endif
|
||||
|
||||
#endif /* PTR_T */
|
||||
|
||||
extern PTR_T malloc ();
|
||||
extern PTR_T realloc ();
|
||||
extern void free ();
|
||||
|
||||
/* Other miscellaneous functions. */
|
||||
extern void abort ();
|
||||
extern void exit ();
|
||||
extern char *getenv ();
|
||||
extern void qsort ();
|
||||
|
||||
#endif /* _STDLIB_H */
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../include/ansi_stdlib.h
|
||||
@@ -1,506 +0,0 @@
|
||||
@c The GNU Free Documentation License.
|
||||
@center Version 1.3, 3 November 2008
|
||||
|
||||
@c This file is intended to be included within another document,
|
||||
@c hence no sectioning command or @node.
|
||||
|
||||
@display
|
||||
Copyright @copyright{} 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.
|
||||
@uref{http://fsf.org/}
|
||||
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
@end display
|
||||
|
||||
@enumerate 0
|
||||
@item
|
||||
PREAMBLE
|
||||
|
||||
The purpose of this License is to make a manual, textbook, or other
|
||||
functional and useful document @dfn{free} in the sense of freedom: to
|
||||
assure everyone the effective freedom to copy and redistribute it,
|
||||
with or without modifying it, either commercially or noncommercially.
|
||||
Secondarily, this License preserves for the author and publisher a way
|
||||
to get credit for their work, while not being considered responsible
|
||||
for modifications made by others.
|
||||
|
||||
This License is a kind of ``copyleft'', which means that derivative
|
||||
works of the document must themselves be free in the same sense. It
|
||||
complements the GNU General Public License, which is a copyleft
|
||||
license designed for free software.
|
||||
|
||||
We have designed this License in order to use it for manuals for free
|
||||
software, because free software needs free documentation: a free
|
||||
program should come with manuals providing the same freedoms that the
|
||||
software does. But this License is not limited to software manuals;
|
||||
it can be used for any textual work, regardless of subject matter or
|
||||
whether it is published as a printed book. We recommend this License
|
||||
principally for works whose purpose is instruction or reference.
|
||||
|
||||
@item
|
||||
APPLICABILITY AND DEFINITIONS
|
||||
|
||||
This License applies to any manual or other work, in any medium, that
|
||||
contains a notice placed by the copyright holder saying it can be
|
||||
distributed under the terms of this License. Such a notice grants a
|
||||
world-wide, royalty-free license, unlimited in duration, to use that
|
||||
work under the conditions stated herein. The ``Document'', below,
|
||||
refers to any such manual or work. Any member of the public is a
|
||||
licensee, and is addressed as ``you''. You accept the license if you
|
||||
copy, modify or distribute the work in a way requiring permission
|
||||
under copyright law.
|
||||
|
||||
A ``Modified Version'' of the Document means any work containing the
|
||||
Document or a portion of it, either copied verbatim, or with
|
||||
modifications and/or translated into another language.
|
||||
|
||||
A ``Secondary Section'' is a named appendix or a front-matter section
|
||||
of the Document that deals exclusively with the relationship of the
|
||||
publishers or authors of the Document to the Document's overall
|
||||
subject (or to related matters) and contains nothing that could fall
|
||||
directly within that overall subject. (Thus, if the Document is in
|
||||
part a textbook of mathematics, a Secondary Section may not explain
|
||||
any mathematics.) The relationship could be a matter of historical
|
||||
connection with the subject or with related matters, or of legal,
|
||||
commercial, philosophical, ethical or political position regarding
|
||||
them.
|
||||
|
||||
The ``Invariant Sections'' are certain Secondary Sections whose titles
|
||||
are designated, as being those of Invariant Sections, in the notice
|
||||
that says that the Document is released under this License. If a
|
||||
section does not fit the above definition of Secondary then it is not
|
||||
allowed to be designated as Invariant. The Document may contain zero
|
||||
Invariant Sections. If the Document does not identify any Invariant
|
||||
Sections then there are none.
|
||||
|
||||
The ``Cover Texts'' are certain short passages of text that are listed,
|
||||
as Front-Cover Texts or Back-Cover Texts, in the notice that says that
|
||||
the Document is released under this License. A Front-Cover Text may
|
||||
be at most 5 words, and a Back-Cover Text may be at most 25 words.
|
||||
|
||||
A ``Transparent'' copy of the Document means a machine-readable copy,
|
||||
represented in a format whose specification is available to the
|
||||
general public, that is suitable for revising the document
|
||||
straightforwardly with generic text editors or (for images composed of
|
||||
pixels) generic paint programs or (for drawings) some widely available
|
||||
drawing editor, and that is suitable for input to text formatters or
|
||||
for automatic translation to a variety of formats suitable for input
|
||||
to text formatters. A copy made in an otherwise Transparent file
|
||||
format whose markup, or absence of markup, has been arranged to thwart
|
||||
or discourage subsequent modification by readers is not Transparent.
|
||||
An image format is not Transparent if used for any substantial amount
|
||||
of text. A copy that is not ``Transparent'' is called ``Opaque''.
|
||||
|
||||
Examples of suitable formats for Transparent copies include plain
|
||||
@sc{ascii} without markup, Texinfo input format, La@TeX{} input
|
||||
format, @acronym{SGML} or @acronym{XML} using a publicly available
|
||||
@acronym{DTD}, and standard-conforming simple @acronym{HTML},
|
||||
PostScript or @acronym{PDF} designed for human modification. Examples
|
||||
of transparent image formats include @acronym{PNG}, @acronym{XCF} and
|
||||
@acronym{JPG}. Opaque formats include proprietary formats that can be
|
||||
read and edited only by proprietary word processors, @acronym{SGML} or
|
||||
@acronym{XML} for which the @acronym{DTD} and/or processing tools are
|
||||
not generally available, and the machine-generated @acronym{HTML},
|
||||
PostScript or @acronym{PDF} produced by some word processors for
|
||||
output purposes only.
|
||||
|
||||
The ``Title Page'' means, for a printed book, the title page itself,
|
||||
plus such following pages as are needed to hold, legibly, the material
|
||||
this License requires to appear in the title page. For works in
|
||||
formats which do not have any title page as such, ``Title Page'' means
|
||||
the text near the most prominent appearance of the work's title,
|
||||
preceding the beginning of the body of the text.
|
||||
|
||||
The ``publisher'' means any person or entity that distributes copies
|
||||
of the Document to the public.
|
||||
|
||||
A section ``Entitled XYZ'' means a named subunit of the Document whose
|
||||
title either is precisely XYZ or contains XYZ in parentheses following
|
||||
text that translates XYZ in another language. (Here XYZ stands for a
|
||||
specific section name mentioned below, such as ``Acknowledgements'',
|
||||
``Dedications'', ``Endorsements'', or ``History''.) To ``Preserve the Title''
|
||||
of such a section when you modify the Document means that it remains a
|
||||
section ``Entitled XYZ'' according to this definition.
|
||||
|
||||
The Document may include Warranty Disclaimers next to the notice which
|
||||
states that this License applies to the Document. These Warranty
|
||||
Disclaimers are considered to be included by reference in this
|
||||
License, but only as regards disclaiming warranties: any other
|
||||
implication that these Warranty Disclaimers may have is void and has
|
||||
no effect on the meaning of this License.
|
||||
|
||||
@item
|
||||
VERBATIM COPYING
|
||||
|
||||
You may copy and distribute the Document in any medium, either
|
||||
commercially or noncommercially, provided that this License, the
|
||||
copyright notices, and the license notice saying this License applies
|
||||
to the Document are reproduced in all copies, and that you add no other
|
||||
conditions whatsoever to those of this License. You may not use
|
||||
technical measures to obstruct or control the reading or further
|
||||
copying of the copies you make or distribute. However, you may accept
|
||||
compensation in exchange for copies. If you distribute a large enough
|
||||
number of copies you must also follow the conditions in section 3.
|
||||
|
||||
You may also lend copies, under the same conditions stated above, and
|
||||
you may publicly display copies.
|
||||
|
||||
@item
|
||||
COPYING IN QUANTITY
|
||||
|
||||
If you publish printed copies (or copies in media that commonly have
|
||||
printed covers) of the Document, numbering more than 100, and the
|
||||
Document's license notice requires Cover Texts, you must enclose the
|
||||
copies in covers that carry, clearly and legibly, all these Cover
|
||||
Texts: Front-Cover Texts on the front cover, and Back-Cover Texts on
|
||||
the back cover. Both covers must also clearly and legibly identify
|
||||
you as the publisher of these copies. The front cover must present
|
||||
the full title with all words of the title equally prominent and
|
||||
visible. You may add other material on the covers in addition.
|
||||
Copying with changes limited to the covers, as long as they preserve
|
||||
the title of the Document and satisfy these conditions, can be treated
|
||||
as verbatim copying in other respects.
|
||||
|
||||
If the required texts for either cover are too voluminous to fit
|
||||
legibly, you should put the first ones listed (as many as fit
|
||||
reasonably) on the actual cover, and continue the rest onto adjacent
|
||||
pages.
|
||||
|
||||
If you publish or distribute Opaque copies of the Document numbering
|
||||
more than 100, you must either include a machine-readable Transparent
|
||||
copy along with each Opaque copy, or state in or with each Opaque copy
|
||||
a computer-network location from which the general network-using
|
||||
public has access to download using public-standard network protocols
|
||||
a complete Transparent copy of the Document, free of added material.
|
||||
If you use the latter option, you must take reasonably prudent steps,
|
||||
when you begin distribution of Opaque copies in quantity, to ensure
|
||||
that this Transparent copy will remain thus accessible at the stated
|
||||
location until at least one year after the last time you distribute an
|
||||
Opaque copy (directly or through your agents or retailers) of that
|
||||
edition to the public.
|
||||
|
||||
It is requested, but not required, that you contact the authors of the
|
||||
Document well before redistributing any large number of copies, to give
|
||||
them a chance to provide you with an updated version of the Document.
|
||||
|
||||
@item
|
||||
MODIFICATIONS
|
||||
|
||||
You may copy and distribute a Modified Version of the Document under
|
||||
the conditions of sections 2 and 3 above, provided that you release
|
||||
the Modified Version under precisely this License, with the Modified
|
||||
Version filling the role of the Document, thus licensing distribution
|
||||
and modification of the Modified Version to whoever possesses a copy
|
||||
of it. In addition, you must do these things in the Modified Version:
|
||||
|
||||
@enumerate A
|
||||
@item
|
||||
Use in the Title Page (and on the covers, if any) a title distinct
|
||||
from that of the Document, and from those of previous versions
|
||||
(which should, if there were any, be listed in the History section
|
||||
of the Document). You may use the same title as a previous version
|
||||
if the original publisher of that version gives permission.
|
||||
|
||||
@item
|
||||
List on the Title Page, as authors, one or more persons or entities
|
||||
responsible for authorship of the modifications in the Modified
|
||||
Version, together with at least five of the principal authors of the
|
||||
Document (all of its principal authors, if it has fewer than five),
|
||||
unless they release you from this requirement.
|
||||
|
||||
@item
|
||||
State on the Title page the name of the publisher of the
|
||||
Modified Version, as the publisher.
|
||||
|
||||
@item
|
||||
Preserve all the copyright notices of the Document.
|
||||
|
||||
@item
|
||||
Add an appropriate copyright notice for your modifications
|
||||
adjacent to the other copyright notices.
|
||||
|
||||
@item
|
||||
Include, immediately after the copyright notices, a license notice
|
||||
giving the public permission to use the Modified Version under the
|
||||
terms of this License, in the form shown in the Addendum below.
|
||||
|
||||
@item
|
||||
Preserve in that license notice the full lists of Invariant Sections
|
||||
and required Cover Texts given in the Document's license notice.
|
||||
|
||||
@item
|
||||
Include an unaltered copy of this License.
|
||||
|
||||
@item
|
||||
Preserve the section Entitled ``History'', Preserve its Title, and add
|
||||
to it an item stating at least the title, year, new authors, and
|
||||
publisher of the Modified Version as given on the Title Page. If
|
||||
there is no section Entitled ``History'' in the Document, create one
|
||||
stating the title, year, authors, and publisher of the Document as
|
||||
given on its Title Page, then add an item describing the Modified
|
||||
Version as stated in the previous sentence.
|
||||
|
||||
@item
|
||||
Preserve the network location, if any, given in the Document for
|
||||
public access to a Transparent copy of the Document, and likewise
|
||||
the network locations given in the Document for previous versions
|
||||
it was based on. These may be placed in the ``History'' section.
|
||||
You may omit a network location for a work that was published at
|
||||
least four years before the Document itself, or if the original
|
||||
publisher of the version it refers to gives permission.
|
||||
|
||||
@item
|
||||
For any section Entitled ``Acknowledgements'' or ``Dedications'', Preserve
|
||||
the Title of the section, and preserve in the section all the
|
||||
substance and tone of each of the contributor acknowledgements and/or
|
||||
dedications given therein.
|
||||
|
||||
@item
|
||||
Preserve all the Invariant Sections of the Document,
|
||||
unaltered in their text and in their titles. Section numbers
|
||||
or the equivalent are not considered part of the section titles.
|
||||
|
||||
@item
|
||||
Delete any section Entitled ``Endorsements''. Such a section
|
||||
may not be included in the Modified Version.
|
||||
|
||||
@item
|
||||
Do not retitle any existing section to be Entitled ``Endorsements'' or
|
||||
to conflict in title with any Invariant Section.
|
||||
|
||||
@item
|
||||
Preserve any Warranty Disclaimers.
|
||||
@end enumerate
|
||||
|
||||
If the Modified Version includes new front-matter sections or
|
||||
appendices that qualify as Secondary Sections and contain no material
|
||||
copied from the Document, you may at your option designate some or all
|
||||
of these sections as invariant. To do this, add their titles to the
|
||||
list of Invariant Sections in the Modified Version's license notice.
|
||||
These titles must be distinct from any other section titles.
|
||||
|
||||
You may add a section Entitled ``Endorsements'', provided it contains
|
||||
nothing but endorsements of your Modified Version by various
|
||||
parties---for example, statements of peer review or that the text has
|
||||
been approved by an organization as the authoritative definition of a
|
||||
standard.
|
||||
|
||||
You may add a passage of up to five words as a Front-Cover Text, and a
|
||||
passage of up to 25 words as a Back-Cover Text, to the end of the list
|
||||
of Cover Texts in the Modified Version. Only one passage of
|
||||
Front-Cover Text and one of Back-Cover Text may be added by (or
|
||||
through arrangements made by) any one entity. If the Document already
|
||||
includes a cover text for the same cover, previously added by you or
|
||||
by arrangement made by the same entity you are acting on behalf of,
|
||||
you may not add another; but you may replace the old one, on explicit
|
||||
permission from the previous publisher that added the old one.
|
||||
|
||||
The author(s) and publisher(s) of the Document do not by this License
|
||||
give permission to use their names for publicity for or to assert or
|
||||
imply endorsement of any Modified Version.
|
||||
|
||||
@item
|
||||
COMBINING DOCUMENTS
|
||||
|
||||
You may combine the Document with other documents released under this
|
||||
License, under the terms defined in section 4 above for modified
|
||||
versions, provided that you include in the combination all of the
|
||||
Invariant Sections of all of the original documents, unmodified, and
|
||||
list them all as Invariant Sections of your combined work in its
|
||||
license notice, and that you preserve all their Warranty Disclaimers.
|
||||
|
||||
The combined work need only contain one copy of this License, and
|
||||
multiple identical Invariant Sections may be replaced with a single
|
||||
copy. If there are multiple Invariant Sections with the same name but
|
||||
different contents, make the title of each such section unique by
|
||||
adding at the end of it, in parentheses, the name of the original
|
||||
author or publisher of that section if known, or else a unique number.
|
||||
Make the same adjustment to the section titles in the list of
|
||||
Invariant Sections in the license notice of the combined work.
|
||||
|
||||
In the combination, you must combine any sections Entitled ``History''
|
||||
in the various original documents, forming one section Entitled
|
||||
``History''; likewise combine any sections Entitled ``Acknowledgements'',
|
||||
and any sections Entitled ``Dedications''. You must delete all
|
||||
sections Entitled ``Endorsements.''
|
||||
|
||||
@item
|
||||
COLLECTIONS OF DOCUMENTS
|
||||
|
||||
You may make a collection consisting of the Document and other documents
|
||||
released under this License, and replace the individual copies of this
|
||||
License in the various documents with a single copy that is included in
|
||||
the collection, provided that you follow the rules of this License for
|
||||
verbatim copying of each of the documents in all other respects.
|
||||
|
||||
You may extract a single document from such a collection, and distribute
|
||||
it individually under this License, provided you insert a copy of this
|
||||
License into the extracted document, and follow this License in all
|
||||
other respects regarding verbatim copying of that document.
|
||||
|
||||
@item
|
||||
AGGREGATION WITH INDEPENDENT WORKS
|
||||
|
||||
A compilation of the Document or its derivatives with other separate
|
||||
and independent documents or works, in or on a volume of a storage or
|
||||
distribution medium, is called an ``aggregate'' if the copyright
|
||||
resulting from the compilation is not used to limit the legal rights
|
||||
of the compilation's users beyond what the individual works permit.
|
||||
When the Document is included in an aggregate, this License does not
|
||||
apply to the other works in the aggregate which are not themselves
|
||||
derivative works of the Document.
|
||||
|
||||
If the Cover Text requirement of section 3 is applicable to these
|
||||
copies of the Document, then if the Document is less than one half of
|
||||
the entire aggregate, the Document's Cover Texts may be placed on
|
||||
covers that bracket the Document within the aggregate, or the
|
||||
electronic equivalent of covers if the Document is in electronic form.
|
||||
Otherwise they must appear on printed covers that bracket the whole
|
||||
aggregate.
|
||||
|
||||
@item
|
||||
TRANSLATION
|
||||
|
||||
Translation is considered a kind of modification, so you may
|
||||
distribute translations of the Document under the terms of section 4.
|
||||
Replacing Invariant Sections with translations requires special
|
||||
permission from their copyright holders, but you may include
|
||||
translations of some or all Invariant Sections in addition to the
|
||||
original versions of these Invariant Sections. You may include a
|
||||
translation of this License, and all the license notices in the
|
||||
Document, and any Warranty Disclaimers, provided that you also include
|
||||
the original English version of this License and the original versions
|
||||
of those notices and disclaimers. In case of a disagreement between
|
||||
the translation and the original version of this License or a notice
|
||||
or disclaimer, the original version will prevail.
|
||||
|
||||
If a section in the Document is Entitled ``Acknowledgements'',
|
||||
``Dedications'', or ``History'', the requirement (section 4) to Preserve
|
||||
its Title (section 1) will typically require changing the actual
|
||||
title.
|
||||
|
||||
@item
|
||||
TERMINATION
|
||||
|
||||
You may not copy, modify, sublicense, or distribute the Document
|
||||
except as expressly provided under this License. Any attempt
|
||||
otherwise to copy, modify, sublicense, or distribute it is void, and
|
||||
will automatically terminate your rights under this License.
|
||||
|
||||
However, if you cease all violation of this License, then your license
|
||||
from a particular copyright holder is reinstated (a) provisionally,
|
||||
unless and until the copyright holder explicitly and finally
|
||||
terminates your license, and (b) permanently, if the copyright holder
|
||||
fails to notify you of the violation by some reasonable means prior to
|
||||
60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is
|
||||
reinstated permanently if the copyright holder notifies you of the
|
||||
violation by some reasonable means, this is the first time you have
|
||||
received notice of violation of this License (for any work) from that
|
||||
copyright holder, and you cure the violation prior to 30 days after
|
||||
your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the
|
||||
licenses of parties who have received copies or rights from you under
|
||||
this License. If your rights have been terminated and not permanently
|
||||
reinstated, receipt of a copy of some or all of the same material does
|
||||
not give you any rights to use it.
|
||||
|
||||
@item
|
||||
FUTURE REVISIONS OF THIS LICENSE
|
||||
|
||||
The Free Software Foundation may publish new, revised versions
|
||||
of the GNU Free Documentation License from time to time. Such new
|
||||
versions will be similar in spirit to the present version, but may
|
||||
differ in detail to address new problems or concerns. See
|
||||
@uref{http://www.gnu.org/copyleft/}.
|
||||
|
||||
Each version of the License is given a distinguishing version number.
|
||||
If the Document specifies that a particular numbered version of this
|
||||
License ``or any later version'' applies to it, you have the option of
|
||||
following the terms and conditions either of that specified version or
|
||||
of any later version that has been published (not as a draft) by the
|
||||
Free Software Foundation. If the Document does not specify a version
|
||||
number of this License, you may choose any version ever published (not
|
||||
as a draft) by the Free Software Foundation. If the Document
|
||||
specifies that a proxy can decide which future versions of this
|
||||
License can be used, that proxy's public statement of acceptance of a
|
||||
version permanently authorizes you to choose that version for the
|
||||
Document.
|
||||
|
||||
@item
|
||||
RELICENSING
|
||||
|
||||
``Massive Multiauthor Collaboration Site'' (or ``MMC Site'') means any
|
||||
World Wide Web server that publishes copyrightable works and also
|
||||
provides prominent facilities for anybody to edit those works. A
|
||||
public wiki that anybody can edit is an example of such a server. A
|
||||
``Massive Multiauthor Collaboration'' (or ``MMC'') contained in the
|
||||
site means any set of copyrightable works thus published on the MMC
|
||||
site.
|
||||
|
||||
``CC-BY-SA'' means the Creative Commons Attribution-Share Alike 3.0
|
||||
license published by Creative Commons Corporation, a not-for-profit
|
||||
corporation with a principal place of business in San Francisco,
|
||||
California, as well as future copyleft versions of that license
|
||||
published by that same organization.
|
||||
|
||||
``Incorporate'' means to publish or republish a Document, in whole or
|
||||
in part, as part of another Document.
|
||||
|
||||
An MMC is ``eligible for relicensing'' if it is licensed under this
|
||||
License, and if all works that were first published under this License
|
||||
somewhere other than this MMC, and subsequently incorporated in whole
|
||||
or in part into the MMC, (1) had no cover texts or invariant sections,
|
||||
and (2) were thus incorporated prior to November 1, 2008.
|
||||
|
||||
The operator of an MMC Site may republish an MMC contained in the site
|
||||
under CC-BY-SA on the same site at any time before August 1, 2009,
|
||||
provided the MMC is eligible for relicensing.
|
||||
|
||||
@end enumerate
|
||||
|
||||
@page
|
||||
@heading ADDENDUM: How to use this License for your documents
|
||||
|
||||
To use this License in a document you have written, include a copy of
|
||||
the License in the document and put the following copyright and
|
||||
license notices just after the title page:
|
||||
|
||||
@smallexample
|
||||
@group
|
||||
Copyright (C) @var{year} @var{your name}.
|
||||
Permission is granted to copy, distribute and/or modify this document
|
||||
under the terms of the GNU Free Documentation License, Version 1.3
|
||||
or any later version published by the Free Software Foundation;
|
||||
with no Invariant Sections, no Front-Cover Texts, and no Back-Cover
|
||||
Texts. A copy of the license is included in the section entitled ``GNU
|
||||
Free Documentation License''.
|
||||
@end group
|
||||
@end smallexample
|
||||
|
||||
If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts,
|
||||
replace the ``with@dots{}Texts.'' line with this:
|
||||
|
||||
@smallexample
|
||||
@group
|
||||
with the Invariant Sections being @var{list their titles}, with
|
||||
the Front-Cover Texts being @var{list}, and with the Back-Cover Texts
|
||||
being @var{list}.
|
||||
@end group
|
||||
@end smallexample
|
||||
|
||||
If you have Invariant Sections without Cover Texts, or some other
|
||||
combination of the three, merge those two alternatives to suit the
|
||||
situation.
|
||||
|
||||
If your document contains nontrivial examples of program code, we
|
||||
recommend releasing these examples in parallel under your choice of
|
||||
free software license, such as the GNU General Public License,
|
||||
to permit their use in free software.
|
||||
|
||||
@c Local Variables:
|
||||
@c ispell-local-pdict: "ispell-dict"
|
||||
@c End:
|
||||
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../../doc/fdl.texi
|
||||
@@ -1,61 +0,0 @@
|
||||
/* posixdir.h -- Posix directory reading includes and defines. */
|
||||
|
||||
/* Copyright (C) 1987,1991 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU Bash, the Bourne Again SHell.
|
||||
|
||||
Bash is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Bash is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Bash. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/* This file should be included instead of <dirent.h> or <sys/dir.h>. */
|
||||
|
||||
#if !defined (_POSIXDIR_H_)
|
||||
#define _POSIXDIR_H_
|
||||
|
||||
#if defined (HAVE_DIRENT_H)
|
||||
# include <dirent.h>
|
||||
# if defined (HAVE_STRUCT_DIRENT_D_NAMLEN)
|
||||
# define D_NAMLEN(d) ((d)->d_namlen)
|
||||
# else
|
||||
# define D_NAMLEN(d) (strlen ((d)->d_name))
|
||||
# endif /* !HAVE_STRUCT_DIRENT_D_NAMLEN */
|
||||
#else
|
||||
# if defined (HAVE_SYS_NDIR_H)
|
||||
# include <sys/ndir.h>
|
||||
# endif
|
||||
# if defined (HAVE_SYS_DIR_H)
|
||||
# include <sys/dir.h>
|
||||
# endif
|
||||
# if defined (HAVE_NDIR_H)
|
||||
# include <ndir.h>
|
||||
# endif
|
||||
# if !defined (dirent)
|
||||
# define dirent direct
|
||||
# endif /* !dirent */
|
||||
# define D_NAMLEN(d) ((d)->d_namlen)
|
||||
#endif /* !HAVE_DIRENT_H */
|
||||
|
||||
#if defined (HAVE_STRUCT_DIRENT_D_INO) && !defined (HAVE_STRUCT_DIRENT_D_FILENO)
|
||||
# define d_fileno d_ino
|
||||
#endif
|
||||
|
||||
#if defined (_POSIX_SOURCE) && (!defined (HAVE_STRUCT_DIRENT_D_INO) || defined (BROKEN_DIRENT_D_INO))
|
||||
/* Posix does not require that the d_ino field be present, and some
|
||||
systems do not provide it. */
|
||||
# define REAL_DIR_ENTRY(dp) 1
|
||||
#else
|
||||
# define REAL_DIR_ENTRY(dp) (dp->d_ino != 0)
|
||||
#endif /* _POSIX_SOURCE */
|
||||
|
||||
#endif /* !_POSIXDIR_H_ */
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../include/posixdir.h
|
||||
@@ -1,40 +0,0 @@
|
||||
/* posixjmp.h -- wrapper for setjmp.h with changes for POSIX systems. */
|
||||
|
||||
/* Copyright (C) 1987,1991 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU Bash, the Bourne Again SHell.
|
||||
|
||||
Bash is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Bash is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Bash. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef _POSIXJMP_H_
|
||||
#define _POSIXJMP_H_
|
||||
|
||||
#include <setjmp.h>
|
||||
|
||||
/* This *must* be included *after* config.h */
|
||||
|
||||
#if defined (HAVE_POSIX_SIGSETJMP)
|
||||
# define procenv_t sigjmp_buf
|
||||
# if !defined (__OPENNT)
|
||||
# undef setjmp
|
||||
# define setjmp(x) sigsetjmp((x), 1)
|
||||
# undef longjmp
|
||||
# define longjmp(x, n) siglongjmp((x), (n))
|
||||
# endif /* !__OPENNT */
|
||||
#else
|
||||
# define procenv_t jmp_buf
|
||||
#endif
|
||||
|
||||
#endif /* _POSIXJMP_H_ */
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../include/posixjmp.h
|
||||
@@ -1,47 +0,0 @@
|
||||
/* posixselect.h -- wrapper for select(2) includes and definitions */
|
||||
|
||||
/* Copyright (C) 2009 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU Bash, the Bourne Again SHell.
|
||||
|
||||
Bash is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Bash is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Bash. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef _POSIXSELECT_H_
|
||||
#define _POSIXSELECT_H_
|
||||
|
||||
#if defined (FD_SET) && !defined (HAVE_SELECT)
|
||||
# define HAVE_SELECT 1
|
||||
#endif
|
||||
|
||||
#if defined (HAVE_SELECT)
|
||||
# if !defined (HAVE_SYS_SELECT_H) || !defined (M_UNIX)
|
||||
# include <sys/time.h>
|
||||
# endif
|
||||
#endif /* HAVE_SELECT */
|
||||
#if defined (HAVE_SYS_SELECT_H)
|
||||
# include <sys/select.h>
|
||||
#endif
|
||||
|
||||
#ifndef USEC_PER_SEC
|
||||
# define USEC_PER_SEC 1000000
|
||||
#endif
|
||||
|
||||
#define USEC_TO_TIMEVAL(us, tv) \
|
||||
do { \
|
||||
(tv).tv_sec = (us) / USEC_PER_SEC; \
|
||||
(tv).tv_usec = (us) % USEC_PER_SEC; \
|
||||
} while (0)
|
||||
|
||||
#endif /* _POSIXSELECT_H_ */
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../include/posixselect.h
|
||||
@@ -1,142 +0,0 @@
|
||||
/* posixstat.h -- Posix stat(2) definitions for systems that
|
||||
don't have them. */
|
||||
|
||||
/* Copyright (C) 1987,1991 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU Bash, the Bourne Again SHell.
|
||||
|
||||
Bash is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Bash is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Bash. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/* This file should be included instead of <sys/stat.h>.
|
||||
It relies on the local sys/stat.h to work though. */
|
||||
#if !defined (_POSIXSTAT_H_)
|
||||
#define _POSIXSTAT_H_
|
||||
|
||||
#include <sys/stat.h>
|
||||
|
||||
#if defined (STAT_MACROS_BROKEN)
|
||||
# undef S_ISBLK
|
||||
# undef S_ISCHR
|
||||
# undef S_ISDIR
|
||||
# undef S_ISFIFO
|
||||
# undef S_ISREG
|
||||
# undef S_ISLNK
|
||||
#endif /* STAT_MACROS_BROKEN */
|
||||
|
||||
/* These are guaranteed to work only on isc386 */
|
||||
#if !defined (S_IFDIR) && !defined (S_ISDIR)
|
||||
# define S_IFDIR 0040000
|
||||
#endif /* !S_IFDIR && !S_ISDIR */
|
||||
#if !defined (S_IFMT)
|
||||
# define S_IFMT 0170000
|
||||
#endif /* !S_IFMT */
|
||||
|
||||
/* Posix 1003.1 5.6.1.1 <sys/stat.h> file types */
|
||||
|
||||
/* Some Posix-wannabe systems define _S_IF* macros instead of S_IF*, but
|
||||
do not provide the S_IS* macros that Posix requires. */
|
||||
|
||||
#if defined (_S_IFMT) && !defined (S_IFMT)
|
||||
#define S_IFMT _S_IFMT
|
||||
#endif
|
||||
#if defined (_S_IFIFO) && !defined (S_IFIFO)
|
||||
#define S_IFIFO _S_IFIFO
|
||||
#endif
|
||||
#if defined (_S_IFCHR) && !defined (S_IFCHR)
|
||||
#define S_IFCHR _S_IFCHR
|
||||
#endif
|
||||
#if defined (_S_IFDIR) && !defined (S_IFDIR)
|
||||
#define S_IFDIR _S_IFDIR
|
||||
#endif
|
||||
#if defined (_S_IFBLK) && !defined (S_IFBLK)
|
||||
#define S_IFBLK _S_IFBLK
|
||||
#endif
|
||||
#if defined (_S_IFREG) && !defined (S_IFREG)
|
||||
#define S_IFREG _S_IFREG
|
||||
#endif
|
||||
#if defined (_S_IFLNK) && !defined (S_IFLNK)
|
||||
#define S_IFLNK _S_IFLNK
|
||||
#endif
|
||||
#if defined (_S_IFSOCK) && !defined (S_IFSOCK)
|
||||
#define S_IFSOCK _S_IFSOCK
|
||||
#endif
|
||||
|
||||
/* Test for each symbol individually and define the ones necessary (some
|
||||
systems claiming Posix compatibility define some but not all). */
|
||||
|
||||
#if defined (S_IFBLK) && !defined (S_ISBLK)
|
||||
#define S_ISBLK(m) (((m)&S_IFMT) == S_IFBLK) /* block device */
|
||||
#endif
|
||||
|
||||
#if defined (S_IFCHR) && !defined (S_ISCHR)
|
||||
#define S_ISCHR(m) (((m)&S_IFMT) == S_IFCHR) /* character device */
|
||||
#endif
|
||||
|
||||
#if defined (S_IFDIR) && !defined (S_ISDIR)
|
||||
#define S_ISDIR(m) (((m)&S_IFMT) == S_IFDIR) /* directory */
|
||||
#endif
|
||||
|
||||
#if defined (S_IFREG) && !defined (S_ISREG)
|
||||
#define S_ISREG(m) (((m)&S_IFMT) == S_IFREG) /* file */
|
||||
#endif
|
||||
|
||||
#if defined (S_IFIFO) && !defined (S_ISFIFO)
|
||||
#define S_ISFIFO(m) (((m)&S_IFMT) == S_IFIFO) /* fifo - named pipe */
|
||||
#endif
|
||||
|
||||
#if defined (S_IFLNK) && !defined (S_ISLNK)
|
||||
#define S_ISLNK(m) (((m)&S_IFMT) == S_IFLNK) /* symbolic link */
|
||||
#endif
|
||||
|
||||
#if defined (S_IFSOCK) && !defined (S_ISSOCK)
|
||||
#define S_ISSOCK(m) (((m)&S_IFMT) == S_IFSOCK) /* socket */
|
||||
#endif
|
||||
|
||||
/*
|
||||
* POSIX 1003.1 5.6.1.2 <sys/stat.h> File Modes
|
||||
*/
|
||||
|
||||
#if !defined (S_IRWXU)
|
||||
# if !defined (S_IREAD)
|
||||
# define S_IREAD 00400
|
||||
# define S_IWRITE 00200
|
||||
# define S_IEXEC 00100
|
||||
# endif /* S_IREAD */
|
||||
|
||||
# if !defined (S_IRUSR)
|
||||
# define S_IRUSR S_IREAD /* read, owner */
|
||||
# define S_IWUSR S_IWRITE /* write, owner */
|
||||
# define S_IXUSR S_IEXEC /* execute, owner */
|
||||
|
||||
# define S_IRGRP (S_IREAD >> 3) /* read, group */
|
||||
# define S_IWGRP (S_IWRITE >> 3) /* write, group */
|
||||
# define S_IXGRP (S_IEXEC >> 3) /* execute, group */
|
||||
|
||||
# define S_IROTH (S_IREAD >> 6) /* read, other */
|
||||
# define S_IWOTH (S_IWRITE >> 6) /* write, other */
|
||||
# define S_IXOTH (S_IEXEC >> 6) /* execute, other */
|
||||
# endif /* !S_IRUSR */
|
||||
|
||||
# define S_IRWXU (S_IRUSR | S_IWUSR | S_IXUSR)
|
||||
# define S_IRWXG (S_IRGRP | S_IWGRP | S_IXGRP)
|
||||
# define S_IRWXO (S_IROTH | S_IWOTH | S_IXOTH)
|
||||
#endif /* !S_IRWXU */
|
||||
|
||||
/* These are non-standard, but are used in builtins.c$symbolic_umask() */
|
||||
#define S_IRUGO (S_IRUSR | S_IRGRP | S_IROTH)
|
||||
#define S_IWUGO (S_IWUSR | S_IWGRP | S_IWOTH)
|
||||
#define S_IXUGO (S_IXUSR | S_IXGRP | S_IXOTH)
|
||||
|
||||
#endif /* _POSIXSTAT_H_ */
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../include/posixstat.h
|
||||
@@ -1,502 +0,0 @@
|
||||
/* tilde.c -- Tilde expansion code (~/foo := $HOME/foo). */
|
||||
|
||||
/* Copyright (C) 1988-2009 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of the GNU Readline Library (Readline), a library
|
||||
for reading lines of text with interactive input and history editing.
|
||||
|
||||
Readline is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Readline is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Readline. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#if defined (HAVE_CONFIG_H)
|
||||
# include <config.h>
|
||||
#endif
|
||||
|
||||
#if defined (HAVE_UNISTD_H)
|
||||
# ifdef _MINIX
|
||||
# include <sys/types.h>
|
||||
# endif
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
|
||||
#if defined (HAVE_STRING_H)
|
||||
# include <string.h>
|
||||
#else /* !HAVE_STRING_H */
|
||||
# include <strings.h>
|
||||
#endif /* !HAVE_STRING_H */
|
||||
|
||||
#if defined (HAVE_STDLIB_H)
|
||||
# include <stdlib.h>
|
||||
#else
|
||||
# include "ansi_stdlib.h"
|
||||
#endif /* HAVE_STDLIB_H */
|
||||
|
||||
#include <sys/types.h>
|
||||
#if defined (HAVE_PWD_H)
|
||||
#include <pwd.h>
|
||||
#endif
|
||||
|
||||
#include "tilde.h"
|
||||
|
||||
#if defined (TEST) || defined (STATIC_MALLOC)
|
||||
static void *xmalloc (), *xrealloc ();
|
||||
#else
|
||||
# include "xmalloc.h"
|
||||
#endif /* TEST || STATIC_MALLOC */
|
||||
|
||||
#if !defined (HAVE_GETPW_DECLS)
|
||||
# if defined (HAVE_GETPWUID)
|
||||
extern struct passwd *getpwuid PARAMS((uid_t));
|
||||
# endif
|
||||
# if defined (HAVE_GETPWNAM)
|
||||
extern struct passwd *getpwnam PARAMS((const char *));
|
||||
# endif
|
||||
#endif /* !HAVE_GETPW_DECLS */
|
||||
|
||||
#if !defined (savestring)
|
||||
#define savestring(x) strcpy ((char *)xmalloc (1 + strlen (x)), (x))
|
||||
#endif /* !savestring */
|
||||
|
||||
#if !defined (NULL)
|
||||
# if defined (__STDC__)
|
||||
# define NULL ((void *) 0)
|
||||
# else
|
||||
# define NULL 0x0
|
||||
# endif /* !__STDC__ */
|
||||
#endif /* !NULL */
|
||||
|
||||
/* If being compiled as part of bash, these will be satisfied from
|
||||
variables.o. If being compiled as part of readline, they will
|
||||
be satisfied from shell.o. */
|
||||
extern char *sh_get_home_dir PARAMS((void));
|
||||
extern char *sh_get_env_value PARAMS((const char *));
|
||||
|
||||
/* The default value of tilde_additional_prefixes. This is set to
|
||||
whitespace preceding a tilde so that simple programs which do not
|
||||
perform any word separation get desired behaviour. */
|
||||
static const char *default_prefixes[] =
|
||||
{ " ~", "\t~", (const char *)NULL };
|
||||
|
||||
/* The default value of tilde_additional_suffixes. This is set to
|
||||
whitespace or newline so that simple programs which do not
|
||||
perform any word separation get desired behaviour. */
|
||||
static const char *default_suffixes[] =
|
||||
{ " ", "\n", (const char *)NULL };
|
||||
|
||||
/* If non-null, this contains the address of a function that the application
|
||||
wants called before trying the standard tilde expansions. The function
|
||||
is called with the text sans tilde, and returns a malloc()'ed string
|
||||
which is the expansion, or a NULL pointer if the expansion fails. */
|
||||
tilde_hook_func_t *tilde_expansion_preexpansion_hook = (tilde_hook_func_t *)NULL;
|
||||
|
||||
/* If non-null, this contains the address of a function to call if the
|
||||
standard meaning for expanding a tilde fails. The function is called
|
||||
with the text (sans tilde, as in "foo"), and returns a malloc()'ed string
|
||||
which is the expansion, or a NULL pointer if there is no expansion. */
|
||||
tilde_hook_func_t *tilde_expansion_failure_hook = (tilde_hook_func_t *)NULL;
|
||||
|
||||
/* When non-null, this is a NULL terminated array of strings which
|
||||
are duplicates for a tilde prefix. Bash uses this to expand
|
||||
`=~' and `:~'. */
|
||||
char **tilde_additional_prefixes = (char **)default_prefixes;
|
||||
|
||||
/* When non-null, this is a NULL terminated array of strings which match
|
||||
the end of a username, instead of just "/". Bash sets this to
|
||||
`:' and `=~'. */
|
||||
char **tilde_additional_suffixes = (char **)default_suffixes;
|
||||
|
||||
static int tilde_find_prefix PARAMS((const char *, int *));
|
||||
static int tilde_find_suffix PARAMS((const char *));
|
||||
static char *isolate_tilde_prefix PARAMS((const char *, int *));
|
||||
static char *glue_prefix_and_suffix PARAMS((char *, const char *, int));
|
||||
|
||||
/* Find the start of a tilde expansion in STRING, and return the index of
|
||||
the tilde which starts the expansion. Place the length of the text
|
||||
which identified this tilde starter in LEN, excluding the tilde itself. */
|
||||
static int
|
||||
tilde_find_prefix (string, len)
|
||||
const char *string;
|
||||
int *len;
|
||||
{
|
||||
register int i, j, string_len;
|
||||
register char **prefixes;
|
||||
|
||||
prefixes = tilde_additional_prefixes;
|
||||
|
||||
string_len = strlen (string);
|
||||
*len = 0;
|
||||
|
||||
if (*string == '\0' || *string == '~')
|
||||
return (0);
|
||||
|
||||
if (prefixes)
|
||||
{
|
||||
for (i = 0; i < string_len; i++)
|
||||
{
|
||||
for (j = 0; prefixes[j]; j++)
|
||||
{
|
||||
if (strncmp (string + i, prefixes[j], strlen (prefixes[j])) == 0)
|
||||
{
|
||||
*len = strlen (prefixes[j]) - 1;
|
||||
return (i + *len);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return (string_len);
|
||||
}
|
||||
|
||||
/* Find the end of a tilde expansion in STRING, and return the index of
|
||||
the character which ends the tilde definition. */
|
||||
static int
|
||||
tilde_find_suffix (string)
|
||||
const char *string;
|
||||
{
|
||||
register int i, j, string_len;
|
||||
register char **suffixes;
|
||||
|
||||
suffixes = tilde_additional_suffixes;
|
||||
string_len = strlen (string);
|
||||
|
||||
for (i = 0; i < string_len; i++)
|
||||
{
|
||||
#if defined (__MSDOS__)
|
||||
if (string[i] == '/' || string[i] == '\\' /* || !string[i] */)
|
||||
#else
|
||||
if (string[i] == '/' /* || !string[i] */)
|
||||
#endif
|
||||
break;
|
||||
|
||||
for (j = 0; suffixes && suffixes[j]; j++)
|
||||
{
|
||||
if (strncmp (string + i, suffixes[j], strlen (suffixes[j])) == 0)
|
||||
return (i);
|
||||
}
|
||||
}
|
||||
return (i);
|
||||
}
|
||||
|
||||
/* Return a new string which is the result of tilde expanding STRING. */
|
||||
char *
|
||||
tilde_expand (string)
|
||||
const char *string;
|
||||
{
|
||||
char *result;
|
||||
int result_size, result_index;
|
||||
|
||||
result_index = result_size = 0;
|
||||
if (result = strchr (string, '~'))
|
||||
result = (char *)xmalloc (result_size = (strlen (string) + 16));
|
||||
else
|
||||
result = (char *)xmalloc (result_size = (strlen (string) + 1));
|
||||
|
||||
/* Scan through STRING expanding tildes as we come to them. */
|
||||
while (1)
|
||||
{
|
||||
register int start, end;
|
||||
char *tilde_word, *expansion;
|
||||
int len;
|
||||
|
||||
/* Make START point to the tilde which starts the expansion. */
|
||||
start = tilde_find_prefix (string, &len);
|
||||
|
||||
/* Copy the skipped text into the result. */
|
||||
if ((result_index + start + 1) > result_size)
|
||||
result = (char *)xrealloc (result, 1 + (result_size += (start + 20)));
|
||||
|
||||
strncpy (result + result_index, string, start);
|
||||
result_index += start;
|
||||
|
||||
/* Advance STRING to the starting tilde. */
|
||||
string += start;
|
||||
|
||||
/* Make END be the index of one after the last character of the
|
||||
username. */
|
||||
end = tilde_find_suffix (string);
|
||||
|
||||
/* If both START and END are zero, we are all done. */
|
||||
if (!start && !end)
|
||||
break;
|
||||
|
||||
/* Expand the entire tilde word, and copy it into RESULT. */
|
||||
tilde_word = (char *)xmalloc (1 + end);
|
||||
strncpy (tilde_word, string, end);
|
||||
tilde_word[end] = '\0';
|
||||
string += end;
|
||||
|
||||
expansion = tilde_expand_word (tilde_word);
|
||||
xfree (tilde_word);
|
||||
|
||||
len = strlen (expansion);
|
||||
#ifdef __CYGWIN__
|
||||
/* Fix for Cygwin to prevent ~user/xxx from expanding to //xxx when
|
||||
$HOME for `user' is /. On cygwin, // denotes a network drive. */
|
||||
if (len > 1 || *expansion != '/' || *string != '/')
|
||||
#endif
|
||||
{
|
||||
if ((result_index + len + 1) > result_size)
|
||||
result = (char *)xrealloc (result, 1 + (result_size += (len + 20)));
|
||||
|
||||
strcpy (result + result_index, expansion);
|
||||
result_index += len;
|
||||
}
|
||||
xfree (expansion);
|
||||
}
|
||||
|
||||
result[result_index] = '\0';
|
||||
|
||||
return (result);
|
||||
}
|
||||
|
||||
/* Take FNAME and return the tilde prefix we want expanded. If LENP is
|
||||
non-null, the index of the end of the prefix into FNAME is returned in
|
||||
the location it points to. */
|
||||
static char *
|
||||
isolate_tilde_prefix (fname, lenp)
|
||||
const char *fname;
|
||||
int *lenp;
|
||||
{
|
||||
char *ret;
|
||||
int i;
|
||||
|
||||
ret = (char *)xmalloc (strlen (fname));
|
||||
#if defined (__MSDOS__)
|
||||
for (i = 1; fname[i] && fname[i] != '/' && fname[i] != '\\'; i++)
|
||||
#else
|
||||
for (i = 1; fname[i] && fname[i] != '/'; i++)
|
||||
#endif
|
||||
ret[i - 1] = fname[i];
|
||||
ret[i - 1] = '\0';
|
||||
if (lenp)
|
||||
*lenp = i;
|
||||
return ret;
|
||||
}
|
||||
|
||||
#if 0
|
||||
/* Public function to scan a string (FNAME) beginning with a tilde and find
|
||||
the portion of the string that should be passed to the tilde expansion
|
||||
function. Right now, it just calls tilde_find_suffix and allocates new
|
||||
memory, but it can be expanded to do different things later. */
|
||||
char *
|
||||
tilde_find_word (fname, flags, lenp)
|
||||
const char *fname;
|
||||
int flags, *lenp;
|
||||
{
|
||||
int x;
|
||||
char *r;
|
||||
|
||||
x = tilde_find_suffix (fname);
|
||||
if (x == 0)
|
||||
{
|
||||
r = savestring (fname);
|
||||
if (lenp)
|
||||
*lenp = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
r = (char *)xmalloc (1 + x);
|
||||
strncpy (r, fname, x);
|
||||
r[x] = '\0';
|
||||
if (lenp)
|
||||
*lenp = x;
|
||||
}
|
||||
|
||||
return r;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Return a string that is PREFIX concatenated with SUFFIX starting at
|
||||
SUFFIND. */
|
||||
static char *
|
||||
glue_prefix_and_suffix (prefix, suffix, suffind)
|
||||
char *prefix;
|
||||
const char *suffix;
|
||||
int suffind;
|
||||
{
|
||||
char *ret;
|
||||
int plen, slen;
|
||||
|
||||
plen = (prefix && *prefix) ? strlen (prefix) : 0;
|
||||
slen = strlen (suffix + suffind);
|
||||
ret = (char *)xmalloc (plen + slen + 1);
|
||||
if (plen)
|
||||
strcpy (ret, prefix);
|
||||
strcpy (ret + plen, suffix + suffind);
|
||||
return ret;
|
||||
}
|
||||
|
||||
/* Do the work of tilde expansion on FILENAME. FILENAME starts with a
|
||||
tilde. If there is no expansion, call tilde_expansion_failure_hook.
|
||||
This always returns a newly-allocated string, never static storage. */
|
||||
char *
|
||||
tilde_expand_word (filename)
|
||||
const char *filename;
|
||||
{
|
||||
char *dirname, *expansion, *username;
|
||||
int user_len;
|
||||
struct passwd *user_entry;
|
||||
|
||||
if (filename == 0)
|
||||
return ((char *)NULL);
|
||||
|
||||
if (*filename != '~')
|
||||
return (savestring (filename));
|
||||
|
||||
/* A leading `~/' or a bare `~' is *always* translated to the value of
|
||||
$HOME or the home directory of the current user, regardless of any
|
||||
preexpansion hook. */
|
||||
if (filename[1] == '\0' || filename[1] == '/')
|
||||
{
|
||||
/* Prefix $HOME to the rest of the string. */
|
||||
expansion = sh_get_env_value ("HOME");
|
||||
|
||||
/* If there is no HOME variable, look up the directory in
|
||||
the password database. */
|
||||
if (expansion == 0)
|
||||
expansion = sh_get_home_dir ();
|
||||
|
||||
return (glue_prefix_and_suffix (expansion, filename, 1));
|
||||
}
|
||||
|
||||
username = isolate_tilde_prefix (filename, &user_len);
|
||||
|
||||
if (tilde_expansion_preexpansion_hook)
|
||||
{
|
||||
expansion = (*tilde_expansion_preexpansion_hook) (username);
|
||||
if (expansion)
|
||||
{
|
||||
dirname = glue_prefix_and_suffix (expansion, filename, user_len);
|
||||
xfree (username);
|
||||
free (expansion);
|
||||
return (dirname);
|
||||
}
|
||||
}
|
||||
|
||||
/* No preexpansion hook, or the preexpansion hook failed. Look in the
|
||||
password database. */
|
||||
dirname = (char *)NULL;
|
||||
#if defined (HAVE_GETPWNAM)
|
||||
user_entry = getpwnam (username);
|
||||
#else
|
||||
user_entry = 0;
|
||||
#endif
|
||||
if (user_entry == 0)
|
||||
{
|
||||
/* If the calling program has a special syntax for expanding tildes,
|
||||
and we couldn't find a standard expansion, then let them try. */
|
||||
if (tilde_expansion_failure_hook)
|
||||
{
|
||||
expansion = (*tilde_expansion_failure_hook) (username);
|
||||
if (expansion)
|
||||
{
|
||||
dirname = glue_prefix_and_suffix (expansion, filename, user_len);
|
||||
free (expansion);
|
||||
}
|
||||
}
|
||||
/* If we don't have a failure hook, or if the failure hook did not
|
||||
expand the tilde, return a copy of what we were passed. */
|
||||
if (dirname == 0)
|
||||
dirname = savestring (filename);
|
||||
}
|
||||
#if defined (HAVE_GETPWENT)
|
||||
else
|
||||
dirname = glue_prefix_and_suffix (user_entry->pw_dir, filename, user_len);
|
||||
#endif
|
||||
|
||||
xfree (username);
|
||||
#if defined (HAVE_GETPWENT)
|
||||
endpwent ();
|
||||
#endif
|
||||
return (dirname);
|
||||
}
|
||||
|
||||
|
||||
#if defined (TEST)
|
||||
#undef NULL
|
||||
#include <stdio.h>
|
||||
|
||||
main (argc, argv)
|
||||
int argc;
|
||||
char **argv;
|
||||
{
|
||||
char *result, line[512];
|
||||
int done = 0;
|
||||
|
||||
while (!done)
|
||||
{
|
||||
printf ("~expand: ");
|
||||
fflush (stdout);
|
||||
|
||||
if (!gets (line))
|
||||
strcpy (line, "done");
|
||||
|
||||
if ((strcmp (line, "done") == 0) ||
|
||||
(strcmp (line, "quit") == 0) ||
|
||||
(strcmp (line, "exit") == 0))
|
||||
{
|
||||
done = 1;
|
||||
break;
|
||||
}
|
||||
|
||||
result = tilde_expand (line);
|
||||
printf (" --> %s\n", result);
|
||||
free (result);
|
||||
}
|
||||
exit (0);
|
||||
}
|
||||
|
||||
static void memory_error_and_abort ();
|
||||
|
||||
static void *
|
||||
xmalloc (bytes)
|
||||
size_t bytes;
|
||||
{
|
||||
void *temp = (char *)malloc (bytes);
|
||||
|
||||
if (!temp)
|
||||
memory_error_and_abort ();
|
||||
return (temp);
|
||||
}
|
||||
|
||||
static void *
|
||||
xrealloc (pointer, bytes)
|
||||
void *pointer;
|
||||
int bytes;
|
||||
{
|
||||
void *temp;
|
||||
|
||||
if (!pointer)
|
||||
temp = malloc (bytes);
|
||||
else
|
||||
temp = realloc (pointer, bytes);
|
||||
|
||||
if (!temp)
|
||||
memory_error_and_abort ();
|
||||
|
||||
return (temp);
|
||||
}
|
||||
|
||||
static void
|
||||
memory_error_and_abort ()
|
||||
{
|
||||
fprintf (stderr, "readline: out of virtual memory\n");
|
||||
abort ();
|
||||
}
|
||||
|
||||
/*
|
||||
* Local variables:
|
||||
* compile-command: "gcc -g -DTEST -o tilde tilde.c"
|
||||
* end:
|
||||
*/
|
||||
#endif /* TEST */
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../tilde/tilde.c
|
||||
@@ -1,80 +0,0 @@
|
||||
/* tilde.h: Externally available variables and function in libtilde.a. */
|
||||
|
||||
/* Copyright (C) 1992-2009 Free Software Foundation, Inc.
|
||||
|
||||
This file contains the Readline Library (Readline), a set of
|
||||
routines for providing Emacs style line input to programs that ask
|
||||
for it.
|
||||
|
||||
Readline is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Readline is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Readline. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#if !defined (_TILDE_H_)
|
||||
# define _TILDE_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* A function can be defined using prototypes and compile on both ANSI C
|
||||
and traditional C compilers with something like this:
|
||||
extern char *func PARAMS((char *, char *, int)); */
|
||||
|
||||
#if !defined (PARAMS)
|
||||
# if defined (__STDC__) || defined (__GNUC__) || defined (__cplusplus)
|
||||
# define PARAMS(protos) protos
|
||||
# else
|
||||
# define PARAMS(protos) ()
|
||||
# endif
|
||||
#endif
|
||||
|
||||
typedef char *tilde_hook_func_t PARAMS((char *));
|
||||
|
||||
/* If non-null, this contains the address of a function that the application
|
||||
wants called before trying the standard tilde expansions. The function
|
||||
is called with the text sans tilde, and returns a malloc()'ed string
|
||||
which is the expansion, or a NULL pointer if the expansion fails. */
|
||||
extern tilde_hook_func_t *tilde_expansion_preexpansion_hook;
|
||||
|
||||
/* If non-null, this contains the address of a function to call if the
|
||||
standard meaning for expanding a tilde fails. The function is called
|
||||
with the text (sans tilde, as in "foo"), and returns a malloc()'ed string
|
||||
which is the expansion, or a NULL pointer if there is no expansion. */
|
||||
extern tilde_hook_func_t *tilde_expansion_failure_hook;
|
||||
|
||||
/* When non-null, this is a NULL terminated array of strings which
|
||||
are duplicates for a tilde prefix. Bash uses this to expand
|
||||
`=~' and `:~'. */
|
||||
extern char **tilde_additional_prefixes;
|
||||
|
||||
/* When non-null, this is a NULL terminated array of strings which match
|
||||
the end of a username, instead of just "/". Bash sets this to
|
||||
`:' and `=~'. */
|
||||
extern char **tilde_additional_suffixes;
|
||||
|
||||
/* Return a new string which is the result of tilde expanding STRING. */
|
||||
extern char *tilde_expand PARAMS((const char *));
|
||||
|
||||
/* Do the work of tilde expansion on FILENAME. FILENAME starts with a
|
||||
tilde. If there is no expansion, call tilde_expansion_failure_hook. */
|
||||
extern char *tilde_expand_word PARAMS((const char *));
|
||||
|
||||
/* Find the portion of the string beginning with ~ that should be expanded. */
|
||||
extern char *tilde_find_word PARAMS((const char *, int, int *));
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* _TILDE_H_ */
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../tilde/tilde.h
|
||||
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
+1
-1
@@ -1,4 +1,4 @@
|
||||
BUILD_DIR=/usr/local/build/chet/bash/bash-current
|
||||
BUILD_DIR=/usr/local/build/bash/bash-current
|
||||
THIS_SH=$BUILD_DIR/bash
|
||||
PATH=$PATH:$BUILD_DIR
|
||||
|
||||
|
||||
+2
-2
@@ -72,8 +72,8 @@ running jobs:
|
||||
[1] Running sleep 300 &
|
||||
[2]- Running sleep 350 &
|
||||
[3]+ Running sleep 400 &
|
||||
./jobs.tests: line 127: kill: %4: no such job
|
||||
./jobs.tests: line 129: jobs: %4: no such job
|
||||
./jobs.tests: line 128: kill: %4: no such job
|
||||
./jobs.tests: line 130: jobs: %4: no such job
|
||||
current job:
|
||||
[3]+ Running sleep 400 &
|
||||
previous job:
|
||||
|
||||
@@ -115,6 +115,7 @@ exit 1 | exit 2 | exit 3
|
||||
echo $? -- ${PIPESTATUS[@]} -- ${PIPESTATUS[0]} - ${PIPESTATUS[1]} - ${PIPESTATUS[2]}
|
||||
|
||||
sleep 300 &
|
||||
sleep300pid=$!
|
||||
sleep 350 &
|
||||
sleep 400 &
|
||||
|
||||
@@ -168,6 +169,7 @@ exec 5>&2
|
||||
exec 2>/dev/null
|
||||
|
||||
echo killing...
|
||||
kill -n 9 $sleep300pid
|
||||
kill -n 9 %2 %3
|
||||
wait # make sure we reap the processes while stderr is still redirected
|
||||
echo done
|
||||
|
||||
@@ -0,0 +1,185 @@
|
||||
# test out %+, jobs -p, and $! agreement in a subshell first
|
||||
${THIS_SH} ./jobs1.sub
|
||||
|
||||
# test out fg/bg failure in a subshell
|
||||
${THIS_SH} ./jobs2.sub
|
||||
|
||||
# test out behavior of waiting for background pids -- bug in versions
|
||||
# before 2.03
|
||||
${THIS_SH} ./jobs3.sub
|
||||
|
||||
# test out behavior of using job control notation when job control is not
|
||||
# active
|
||||
${THIS_SH} ./jobs4.sub
|
||||
|
||||
jobs
|
||||
echo $?
|
||||
|
||||
# a no-such-job error, since we can use job control notation without job control
|
||||
wait %1
|
||||
|
||||
# make sure we can't fg a job started when job control was not active
|
||||
sleep 30 &
|
||||
pid=$!
|
||||
fg %1
|
||||
# make sure the killed processes don't cause a message
|
||||
exec 5>&2
|
||||
exec 2>/dev/null
|
||||
kill -n 9 $pid
|
||||
wait # make sure we reap the processes while stderr is still redirected
|
||||
exec 2>&5
|
||||
|
||||
echo wait-for-pid
|
||||
sleep 10 &
|
||||
wait $!
|
||||
|
||||
echo wait-errors
|
||||
wait 1-1
|
||||
wait -- -4
|
||||
|
||||
echo wait-for-background-pids
|
||||
sleep 5 &
|
||||
sleep 8 &
|
||||
wait
|
||||
|
||||
echo async list wait-for-background-pids
|
||||
sleep 5 & sleep 8 &
|
||||
wait
|
||||
|
||||
echo async list wait for child
|
||||
sleep 5 & echo forked
|
||||
wait
|
||||
|
||||
echo wait-when-no-children
|
||||
wait
|
||||
|
||||
set -m
|
||||
|
||||
echo wait-for-job
|
||||
sleep 5 &
|
||||
wait %2 # this should be a no-such-job error
|
||||
echo $?
|
||||
wait %1
|
||||
|
||||
echo async list wait-for-job
|
||||
sleep 5 & echo forked
|
||||
wait %1
|
||||
|
||||
echo fg-bg 1
|
||||
sleep 5 &
|
||||
%1
|
||||
|
||||
echo fg-bg 2
|
||||
sleep 5 &
|
||||
fg %%
|
||||
|
||||
echo fg-bg 3
|
||||
sleep 5 &
|
||||
fg %s
|
||||
|
||||
echo fg-bg 4
|
||||
sleep 5 &
|
||||
fg %?ee
|
||||
|
||||
# these next two are error cases
|
||||
echo fg-bg 5
|
||||
sleep 15 &
|
||||
fg %2 # this should be a no-such-job error
|
||||
bg %1 # this should be a `bg background job?' error
|
||||
wait
|
||||
|
||||
# these may someday mean to start the jobs, but not print the line
|
||||
# describing the status, but for now they are errors
|
||||
echo fg-bg 6
|
||||
sleep 5 &
|
||||
fg -s %1
|
||||
bg -s %1
|
||||
wait
|
||||
|
||||
# someday this may mean to disown all stopped jobs, but for now it is
|
||||
# an error
|
||||
disown -s
|
||||
|
||||
# this is an error -- the job with the pid that is the value of $! is
|
||||
# retained only until a `wait' is performed
|
||||
disown %1
|
||||
|
||||
# this, however, is an error
|
||||
disown %2
|
||||
|
||||
echo wait-for-non-child
|
||||
wait 1
|
||||
echo $?
|
||||
|
||||
exit 1 | exit 2 | exit 3
|
||||
echo $? -- ${PIPESTATUS[@]} -- ${PIPESTATUS[0]} - ${PIPESTATUS[1]} - ${PIPESTATUS[2]}
|
||||
|
||||
sleep 300 &
|
||||
sleep300pid=$!
|
||||
echo sleep300pid = $sleep300pid
|
||||
sleep 350 &
|
||||
sleep 400 &
|
||||
|
||||
jobs
|
||||
|
||||
echo running jobs:
|
||||
jobs -r
|
||||
|
||||
# should be an error
|
||||
kill -n 1 %4
|
||||
# should be an error
|
||||
jobs %4
|
||||
echo current job:
|
||||
jobs %+
|
||||
echo previous job:
|
||||
jobs %-
|
||||
|
||||
kill -STOP %2
|
||||
sleep 5 # give time for the shell to get the stop notification
|
||||
echo after kill -STOP
|
||||
echo running jobs:
|
||||
jobs -r
|
||||
echo stopped jobs:
|
||||
jobs -s
|
||||
|
||||
disown %1
|
||||
|
||||
echo after disown
|
||||
jobs
|
||||
echo running jobs:
|
||||
jobs -r
|
||||
echo stopped jobs:
|
||||
jobs -s
|
||||
|
||||
kill -s CONT %2
|
||||
echo after kill -s CONT
|
||||
echo running jobs:
|
||||
jobs -r
|
||||
echo stopped jobs:
|
||||
jobs -s
|
||||
|
||||
kill -STOP %3
|
||||
sleep 5 # give time for the shell to get the stop notification
|
||||
echo after kill -STOP, backgrounding %3:
|
||||
bg %3
|
||||
|
||||
disown -h %2
|
||||
|
||||
# make sure the killed processes don't cause a message
|
||||
exec 5>&2
|
||||
exec 2>/dev/null
|
||||
|
||||
echo killing...
|
||||
kill -n 9 %2 %3
|
||||
wait # make sure we reap the processes while stderr is still redirected
|
||||
echo done
|
||||
|
||||
exec 2>&5
|
||||
|
||||
sleep 10 &
|
||||
kill -STOP %1
|
||||
sleep 5 # give time for the shell to get the stop notification
|
||||
echo after KILL -STOP, foregrounding %1
|
||||
fg %1
|
||||
|
||||
echo done
|
||||
Reference in New Issue
Block a user