mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-02 01:40:49 +02:00
commit bash-20050317 snapshot
This commit is contained in:
+181
-183
@@ -10,7 +10,7 @@
|
||||
%DVIPSWebPage: (www.radicaleye.com)
|
||||
%DVIPSCommandLine: dvips -D 600 -t letter -o bashref.ps bashref.dvi
|
||||
%DVIPSParameters: dpi=600, compressed
|
||||
%DVIPSSource: TeX output 2005.02.22:1344
|
||||
%DVIPSSource: TeX output 2005.03.15:1726
|
||||
%%BeginProcSet: texc.pro
|
||||
%!
|
||||
/TeXDict 300 dict def TeXDict begin/N{def}def/B{bind def}N/S{exch}N/X{S
|
||||
@@ -4226,21 +4226,19 @@ letter
|
||||
TeXDict begin 1 0 bop 150 1318 a Fu(Bash)64 b(Reference)j(Man)-5
|
||||
b(ual)p 150 1385 3600 34 v 2361 1481 a Ft(Reference)31
|
||||
b(Do)s(cumen)m(tation)i(for)d(Bash)1963 1589 y(Edition)h(3.1-dev)m(el,)
|
||||
i(for)d Fs(Bash)f Ft(V)-8 b(ersion)31 b(3.1-dev)m(el.)3180
|
||||
1697 y(F)-8 b(ebruary)30 b(2005)150 4935 y Fr(Chet)45
|
||||
b(Ramey)-11 b(,)46 b(Case)g(W)-11 b(estern)46 b(Reserv)l(e)g(Univ)l
|
||||
(ersit)l(y)150 5068 y(Brian)f(F)-11 b(o)l(x,)45 b(F)-11
|
||||
b(ree)45 b(Soft)l(w)l(are)h(F)-11 b(oundation)p 150 5141
|
||||
3600 17 v eop end
|
||||
i(for)d Fs(Bash)f Ft(V)-8 b(ersion)31 b(3.1-dev)m(el.)3285
|
||||
1697 y(Marc)m(h)g(2005)150 4935 y Fr(Chet)45 b(Ramey)-11
|
||||
b(,)46 b(Case)g(W)-11 b(estern)46 b(Reserv)l(e)g(Univ)l(ersit)l(y)150
|
||||
5068 y(Brian)f(F)-11 b(o)l(x,)45 b(F)-11 b(ree)45 b(Soft)l(w)l(are)h(F)
|
||||
-11 b(oundation)p 150 5141 3600 17 v eop end
|
||||
%%Page: 2 2
|
||||
TeXDict begin 2 1 bop 150 2889 a Ft(This)35 b(text)h(is)g(a)g(brief)f
|
||||
(description)h(of)f(the)h(features)g(that)g(are)g(presen)m(t)g(in)f
|
||||
(the)h(Bash)f(shell)h(\(v)m(ersion)150 2999 y(3.1-dev)m(el,)d(19)e(F)-8
|
||||
b(ebruary)30 b(2005\).)150 3133 y(This)41 b(is)i(Edition)f(3.1-dev)m
|
||||
(el,)48 b(last)43 b(up)s(dated)e(19)i(F)-8 b(ebruary)42
|
||||
b(2005,)47 b(of)42 b Fq(The)g(GNU)h(Bash)f(Reference)150
|
||||
3243 y(Man)m(ual)p Ft(,)32 b(for)e Fs(Bash)p Ft(,)f(V)-8
|
||||
b(ersion)31 b(3.1-dev)m(el.)150 3377 y(Cop)m(yrigh)m(t)602
|
||||
(the)h(Bash)f(shell)h(\(v)m(ersion)150 2999 y(3.1-dev)m(el,)d(15)e
|
||||
(Marc)m(h)g(2005\).)150 3133 y(This)23 b(is)h(Edition)g(3.1-dev)m(el,)k
|
||||
(last)c(up)s(dated)f(15)i(Marc)m(h)f(2005,)j(of)d Fq(The)g(GNU)g(Bash)g
|
||||
(Reference)h(Man)m(ual)p Ft(,)150 3243 y(for)30 b Fs(Bash)p
|
||||
Ft(,)g(V)-8 b(ersion)31 b(3.1-dev)m(el.)150 3377 y(Cop)m(yrigh)m(t)602
|
||||
3374 y(c)577 3377 y Fp(\015)f Ft(1988-2005)k(F)-8 b(ree)32
|
||||
b(Soft)m(w)m(are)f(F)-8 b(oundation,)32 b(Inc.)150 3512
|
||||
y(P)m(ermission)g(is)h(gran)m(ted)g(to)f(mak)m(e)i(and)d(distribute)h
|
||||
@@ -7796,79 +7794,83 @@ b([)p Fj(n)11 b Fs(])630 5340 y Ft(Exit)31 b(a)g(login)g(shell,)g
|
||||
(t.)p eop end
|
||||
%%Page: 44 50
|
||||
TeXDict begin 44 49 bop 150 -116 a Ft(44)2572 b(Bash)31
|
||||
b(Reference)g(Man)m(ual)150 299 y Fs(printf)870 445 y(printf)46
|
||||
b Fj(format)57 b Fs([)p Fj(arguments)11 b Fs(])630 591
|
||||
y Ft(W)-8 b(rite)27 b(the)g(formatted)f Fq(argumen)m(ts)k
|
||||
Ft(to)d(the)f(standard)f(output)h(under)e(the)i(con)m(trol)i(of)e(the)
|
||||
630 701 y Fq(format)p Ft(.)41 b(The)28 b Fq(format)j
|
||||
Ft(is)e(a)g(c)m(haracter)i(string)d(whic)m(h)h(con)m(tains)h(three)f(t)
|
||||
m(yp)s(es)g(of)g(ob)5 b(jects:)630 810 y(plain)28 b(c)m(haracters,)j
|
||||
(whic)m(h)d(are)h(simply)f(copied)h(to)h(standard)d(output,)i(c)m
|
||||
(haracter)h(escap)s(e)630 920 y(sequences,)g(whic)m(h)f(are)g(con)m(v)m
|
||||
(erted)i(and)d(copied)i(to)f(the)h(standard)e(output,)h(and)g(format)
|
||||
630 1029 y(sp)s(eci\014cations,)39 b(eac)m(h)e(of)g(whic)m(h)f(causes)g
|
||||
(prin)m(ting)g(of)h(the)f(next)h(successiv)m(e)g Fq(argumen)m(t)p
|
||||
Ft(.)630 1139 y(In)31 b(addition)h(to)h(the)e(standard)g
|
||||
b(Reference)g(Man)m(ual)150 299 y Fs(printf)870 429 y(printf)46
|
||||
b([-v)h Fj(var)11 b Fs(])46 b Fj(format)57 b Fs([)p Fj(arguments)11
|
||||
b Fs(])630 559 y Ft(W)-8 b(rite)27 b(the)g(formatted)f
|
||||
Fq(argumen)m(ts)k Ft(to)d(the)f(standard)f(output)h(under)e(the)i(con)m
|
||||
(trol)i(of)e(the)630 669 y Fq(format)p Ft(.)41 b(The)28
|
||||
b Fq(format)j Ft(is)e(a)g(c)m(haracter)i(string)d(whic)m(h)h(con)m
|
||||
(tains)h(three)f(t)m(yp)s(es)g(of)g(ob)5 b(jects:)630
|
||||
778 y(plain)28 b(c)m(haracters,)j(whic)m(h)d(are)h(simply)f(copied)h
|
||||
(to)h(standard)d(output,)i(c)m(haracter)h(escap)s(e)630
|
||||
888 y(sequences,)g(whic)m(h)f(are)g(con)m(v)m(erted)i(and)d(copied)i
|
||||
(to)f(the)h(standard)e(output,)h(and)g(format)630 998
|
||||
y(sp)s(eci\014cations,)39 b(eac)m(h)e(of)g(whic)m(h)f(causes)g(prin)m
|
||||
(ting)g(of)h(the)f(next)h(successiv)m(e)g Fq(argumen)m(t)p
|
||||
Ft(.)630 1107 y(In)31 b(addition)h(to)h(the)e(standard)g
|
||||
Fs(printf\(1\))f Ft(formats,)i(`)p Fs(\045b)p Ft(')g(causes)g
|
||||
Fs(printf)e Ft(to)j(expand)630 1249 y(bac)m(kslash)39
|
||||
Fs(printf)e Ft(to)j(expand)630 1217 y(bac)m(kslash)39
|
||||
b(escap)s(e)g(sequences)f(in)h(the)f(corresp)s(onding)f
|
||||
Fq(argumen)m(t)p Ft(,)k(\(except)f(that)f(`)p Fs(\\c)p
|
||||
Ft(')630 1358 y(terminates)44 b(output,)j(bac)m(kslashes)d(in)f(`)p
|
||||
Ft(')630 1326 y(terminates)44 b(output,)j(bac)m(kslashes)d(in)f(`)p
|
||||
Fs(\\')p Ft(',)k(`)p Fs(\\")p Ft(',)g(and)c(`)p Fs(\\?)p
|
||||
Ft(')g(are)h(not)g(remo)m(v)m(ed,)k(and)630 1468 y(o)s(ctal)25
|
||||
Ft(')g(are)h(not)g(remo)m(v)m(ed,)k(and)630 1436 y(o)s(ctal)25
|
||||
b(escap)s(es)f(b)s(eginning)f(with)g(`)p Fs(\\0)p Ft(')h(ma)m(y)g(con)m
|
||||
(tain)h(up)e(to)h(four)f(digits\),)j(and)d(`)p Fs(\045q)p
|
||||
Ft(')h(causes)630 1577 y Fs(printf)31 b Ft(to)i(output)f(the)h(corresp)
|
||||
Ft(')h(causes)630 1545 y Fs(printf)31 b Ft(to)i(output)f(the)h(corresp)
|
||||
s(onding)f Fq(argumen)m(t)j Ft(in)d(a)h(format)g(that)g(can)g(b)s(e)f
|
||||
(reused)630 1687 y(as)f(shell)f(input.)630 1833 y(The)h
|
||||
Fq(format)i Ft(is)f(reused)e(as)i(necessary)f(to)i(consume)e(all)h(of)f
|
||||
(the)h Fq(argumen)m(ts)p Ft(.)44 b(If)30 b(the)i Fq(for-)630
|
||||
1943 y(mat)c Ft(requires)e(more)g Fq(argumen)m(ts)k Ft(than)25
|
||||
b(are)i(supplied,)e(the)h(extra)h(format)f(sp)s(eci\014cations)630
|
||||
2052 y(b)s(eha)m(v)m(e)j(as)g(if)f(a)h(zero)g(v)-5 b(alue)29
|
||||
b(or)g(n)m(ull)f(string,)h(as)g(appropriate,)g(had)f(b)s(een)g
|
||||
(supplied.)38 b(The)630 2162 y(return)29 b(v)-5 b(alue)31
|
||||
b(is)g(zero)g(on)f(success,)h(non-zero)g(on)f(failure.)150
|
||||
2345 y Fs(read)870 2491 y(read)47 b([-ers])f([-a)h Fj(aname)11
|
||||
(reused)630 1655 y(as)f(shell)f(input.)630 1785 y(The)24
|
||||
b(`)p Fs(-v)p Ft(')h(option)g(causes)g(the)g(output)g(to)g(b)s(e)f
|
||||
(assigned)h(to)h(the)f(v)-5 b(ariable)25 b Fq(v)-5 b(ar)32
|
||||
b Ft(rather)24 b(than)630 1895 y(b)s(eing)30 b(prin)m(ted)g(to)h(the)g
|
||||
(standard)e(output.)630 2025 y(The)i Fq(format)i Ft(is)f(reused)e(as)i
|
||||
(necessary)f(to)i(consume)e(all)h(of)f(the)h Fq(argumen)m(ts)p
|
||||
Ft(.)44 b(If)30 b(the)i Fq(for-)630 2134 y(mat)c Ft(requires)e(more)g
|
||||
Fq(argumen)m(ts)k Ft(than)25 b(are)i(supplied,)e(the)h(extra)h(format)f
|
||||
(sp)s(eci\014cations)630 2244 y(b)s(eha)m(v)m(e)j(as)g(if)f(a)h(zero)g
|
||||
(v)-5 b(alue)29 b(or)g(n)m(ull)f(string,)h(as)g(appropriate,)g(had)f(b)
|
||||
s(een)g(supplied.)38 b(The)630 2354 y(return)29 b(v)-5
|
||||
b(alue)31 b(is)g(zero)g(on)f(success,)h(non-zero)g(on)f(failure.)150
|
||||
2504 y Fs(read)870 2634 y(read)47 b([-ers])f([-a)h Fj(aname)11
|
||||
b Fs(])45 b([-d)i Fj(delim)11 b Fs(])46 b([-n)h Fj(nchars)11
|
||||
b Fs(])45 b([-p)i Fj(prompt)11 b Fs(])45 b([-t)i Fj(time-)870
|
||||
2600 y(out)11 b Fs(])46 b([-u)h Fj(fd)11 b Fs(])46 b([)p
|
||||
Fj(name)57 b Fs(...])630 2746 y Ft(One)26 b(line)h(is)g(read)f(from)h
|
||||
2744 y(out)11 b Fs(])46 b([-u)h Fj(fd)11 b Fs(])46 b([)p
|
||||
Fj(name)57 b Fs(...])630 2874 y Ft(One)26 b(line)h(is)g(read)f(from)h
|
||||
(the)f(standard)g(input,)h(or)g(from)f(the)h(\014le)f(descriptor)h
|
||||
Fq(fd)i Ft(supplied)630 2856 y(as)37 b(an)g(argumen)m(t)h(to)f(the)h(`)
|
||||
Fq(fd)i Ft(supplied)630 2984 y(as)37 b(an)g(argumen)m(t)h(to)f(the)h(`)
|
||||
p Fs(-u)p Ft(')e(option,)k(and)c(the)i(\014rst)e(w)m(ord)g(is)h
|
||||
(assigned)h(to)f(the)h(\014rst)630 2966 y Fq(name)p Ft(,)29
|
||||
(assigned)h(to)f(the)h(\014rst)630 3093 y Fq(name)p Ft(,)29
|
||||
b(the)f(second)h(w)m(ord)e(to)i(the)g(second)f Fq(name)p
|
||||
Ft(,)h(and)e(so)i(on,)g(with)f(lefto)m(v)m(er)i(w)m(ords)e(and)630
|
||||
3075 y(their)g(in)m(terv)m(ening)h(separators)g(assigned)f(to)h(the)f
|
||||
3203 y(their)g(in)m(terv)m(ening)h(separators)g(assigned)f(to)h(the)f
|
||||
(last)h Fq(name)p Ft(.)40 b(If)27 b(there)i(are)f(few)m(er)g(w)m(ords)
|
||||
630 3185 y(read)44 b(from)f(the)g(input)g(stream)h(than)g(names,)j(the)
|
||||
c(remaining)h(names)g(are)g(assigned)630 3294 y(empt)m(y)31
|
||||
630 3313 y(read)44 b(from)f(the)g(input)g(stream)h(than)g(names,)j(the)
|
||||
c(remaining)h(names)g(are)g(assigned)630 3422 y(empt)m(y)31
|
||||
b(v)-5 b(alues.)41 b(The)30 b(c)m(haracters)i(in)e(the)h(v)-5
|
||||
b(alue)31 b(of)g(the)f Fs(IFS)g Ft(v)-5 b(ariable)31
|
||||
b(are)g(used)f(to)h(split)630 3404 y(the)37 b(line)h(in)m(to)g(w)m
|
||||
b(are)g(used)f(to)h(split)630 3532 y(the)37 b(line)h(in)m(to)g(w)m
|
||||
(ords.)61 b(The)36 b(bac)m(kslash)i(c)m(haracter)h(`)p
|
||||
Fs(\\)p Ft(')e(ma)m(y)h(b)s(e)f(used)f(to)i(remo)m(v)m(e)h(an)m(y)630
|
||||
3513 y(sp)s(ecial)h(meaning)g(for)f(the)g(next)h(c)m(haracter)h(read)e
|
||||
3641 y(sp)s(ecial)h(meaning)g(for)f(the)g(next)h(c)m(haracter)h(read)e
|
||||
(and)g(for)g(line)h(con)m(tin)m(uation.)69 b(If)39 b(no)630
|
||||
3623 y(names)28 b(are)h(supplied,)f(the)g(line)h(read)g(is)f(assigned)h
|
||||
3751 y(names)28 b(are)h(supplied,)f(the)g(line)h(read)g(is)f(assigned)h
|
||||
(to)g(the)f(v)-5 b(ariable)29 b Fs(REPLY)p Ft(.)39 b(The)28
|
||||
b(return)630 3733 y(co)s(de)i(is)f(zero,)i(unless)e(end-of-\014le)h(is)
|
||||
b(return)630 3861 y(co)s(de)i(is)f(zero,)i(unless)e(end-of-\014le)h(is)
|
||||
f(encoun)m(tered,)h Fs(read)f Ft(times)h(out,)g(or)f(an)h(in)m(v)-5
|
||||
b(alid)30 b(\014le)630 3842 y(descriptor)35 b(is)h(supplied)e(as)i(the)
|
||||
b(alid)30 b(\014le)630 3970 y(descriptor)35 b(is)h(supplied)e(as)i(the)
|
||||
f(argumen)m(t)h(to)g(`)p Fs(-u)p Ft('.)56 b(Options,)37
|
||||
b(if)e(supplied,)h(ha)m(v)m(e)h(the)630 3952 y(follo)m(wing)32
|
||||
b(meanings:)630 4134 y Fs(-a)e Fj(aname)114 b Ft(The)34
|
||||
b(if)e(supplied,)h(ha)m(v)m(e)h(the)630 4080 y(follo)m(wing)32
|
||||
b(meanings:)630 4230 y Fs(-a)e Fj(aname)114 b Ft(The)34
|
||||
b(w)m(ords)f(are)i(assigned)f(to)h(sequen)m(tial)h(indices)e(of)g(the)g
|
||||
(arra)m(y)h(v)-5 b(ariable)1110 4244 y Fq(aname)p Ft(,)29
|
||||
(arra)m(y)h(v)-5 b(ariable)1110 4340 y Fq(aname)p Ft(,)29
|
||||
b(starting)h(at)f(0.)40 b(All)29 b(elemen)m(ts)h(are)e(remo)m(v)m(ed)i
|
||||
(from)d Fq(aname)34 b Ft(b)s(efore)1110 4354 y(the)d(assignmen)m(t.)41
|
||||
(from)d Fq(aname)34 b Ft(b)s(efore)1110 4450 y(the)d(assignmen)m(t.)41
|
||||
b(Other)30 b Fq(name)36 b Ft(argumen)m(ts)30 b(are)h(ignored.)630
|
||||
4536 y Fs(-d)f Fj(delim)114 b Ft(The)41 b(\014rst)h(c)m(haracter)h(of)f
|
||||
4600 y Fs(-d)f Fj(delim)114 b Ft(The)41 b(\014rst)h(c)m(haracter)h(of)f
|
||||
Fq(delim)g Ft(is)g(used)g(to)g(terminate)h(the)f(input)f(line,)1110
|
||||
4646 y(rather)30 b(than)g(newline.)630 4829 y Fs(-e)384
|
||||
4710 y(rather)30 b(than)g(newline.)630 4861 y Fs(-e)384
|
||||
b Ft(Readline)28 b(\(see)h(Chapter)e(8)h([Command)f(Line)g(Editing],)i
|
||||
(page)f(87\))h(is)f(used)1110 4938 y(to)j(obtain)g(the)g(line.)630
|
||||
(page)f(87\))h(is)f(used)1110 4970 y(to)j(obtain)g(the)g(line.)630
|
||||
5121 y Fs(-n)f Fj(nchars)1110 5230 y Fs(read)38 b Ft(returns)f(after)j
|
||||
(reading)f Fq(nc)m(hars)j Ft(c)m(haracters)e(rather)f(than)g(w)m
|
||||
(aiting)1110 5340 y(for)30 b(a)h(complete)h(line)e(of)h(input.)p
|
||||
@@ -10059,192 +10061,188 @@ TeXDict begin 79 84 bop 150 -116 a Ft(Chapter)30 b(6:)41
|
||||
b(Bash)30 b(F)-8 b(eatures)2484 b(79)150 299 y(c)m(hanging)38
|
||||
b(the)f(b)s(eha)m(vior)g(to)g(matc)m(h)h(that)f(sp)s(eci\014ed)g(b)m(y)
|
||||
f Fl(posix)g Ft(in)h(areas)g(where)g(the)g(Bash)g(default)150
|
||||
408 y(di\013ers.)275 554 y(When)30 b(in)m(v)m(ok)m(ed)h(as)g
|
||||
408 y(di\013ers.)275 539 y(When)30 b(in)m(v)m(ok)m(ed)h(as)g
|
||||
Fs(sh)p Ft(,)f(Bash)h(en)m(ters)g Fl(posix)e Ft(mo)s(de)h(after)h
|
||||
(reading)g(the)f(startup)g(\014les.)275 700 y(The)f(follo)m(wing)j
|
||||
(reading)g(the)f(startup)g(\014les.)275 669 y(The)f(follo)m(wing)j
|
||||
(list)f(is)g(what's)f(c)m(hanged)h(when)e(`)p Fl(posix)h
|
||||
Ft(mo)s(de')h(is)f(in)g(e\013ect:)199 846 y(1.)61 b(When)28
|
||||
Ft(mo)s(de')h(is)f(in)g(e\013ect:)199 800 y(1.)61 b(When)28
|
||||
b(a)i(command)e(in)g(the)h(hash)f(table)i(no)e(longer)h(exists,)h(Bash)
|
||||
f(will)g(re-searc)m(h)h Fs($PATH)d Ft(to)i(\014nd)330
|
||||
955 y(the)i(new)e(lo)s(cation.)43 b(This)29 b(is)i(also)g(a)m(v)-5
|
||||
909 y(the)i(new)e(lo)s(cation.)43 b(This)29 b(is)i(also)g(a)m(v)-5
|
||||
b(ailable)33 b(with)d(`)p Fs(shopt)f(-s)h(checkhash)p
|
||||
Ft('.)199 1095 y(2.)61 b(The)42 b(message)h(prin)m(ted)e(b)m(y)h(the)g
|
||||
Ft('.)199 1040 y(2.)61 b(The)42 b(message)h(prin)m(ted)e(b)m(y)h(the)g
|
||||
(job)g(con)m(trol)i(co)s(de)e(and)f(builtins)h(when)f(a)h(job)g(exits)h
|
||||
(with)f(a)330 1205 y(non-zero)31 b(status)g(is)f(`Done\(status\)'.)199
|
||||
1345 y(3.)61 b(The)40 b(message)h(prin)m(ted)f(b)m(y)g(the)h(job)f(con)
|
||||
(with)f(a)330 1149 y(non-zero)31 b(status)g(is)f(`Done\(status\)'.)199
|
||||
1280 y(3.)61 b(The)40 b(message)h(prin)m(ted)f(b)m(y)g(the)h(job)f(con)
|
||||
m(trol)h(co)s(de)g(and)f(builtins)f(when)h(a)g(job)g(is)h(stopp)s(ed)e
|
||||
(is)330 1455 y(`Stopp)s(ed\()p Fq(signame)5 b Ft(\)',)31
|
||||
(is)330 1390 y(`Stopp)s(ed\()p Fq(signame)5 b Ft(\)',)31
|
||||
b(where)f Fq(signame)36 b Ft(is,)31 b(for)f(example,)h
|
||||
Fs(SIGTSTP)p Ft(.)199 1595 y(4.)61 b(Reserv)m(ed)31 b(w)m(ords)f(ma)m
|
||||
(y)h(not)f(b)s(e)g(aliased.)199 1735 y(5.)61 b(The)39
|
||||
b Fl(posix)f Ft(1003.2)k Fs(PS1)d Ft(and)f Fs(PS2)h Ft(expansions)g(of)
|
||||
g(`)p Fs(!)p Ft(')h(to)g(the)f(history)g(n)m(um)m(b)s(er)f(and)h(`)p
|
||||
Fs(!!)p Ft(')g(to)330 1844 y(`)p Fs(!)p Ft(')c(are)h(enabled,)h(and)e
|
||||
(parameter)g(expansion)h(is)f(p)s(erformed)f(on)h(the)h(v)-5
|
||||
b(alues)35 b(of)h Fs(PS1)e Ft(and)h Fs(PS2)330 1954 y
|
||||
Ft(regardless)c(of)f(the)h(setting)g(of)g(the)f Fs(promptvars)e
|
||||
Ft(option.)199 2094 y(6.)61 b(The)30 b Fl(posix)g Ft(1003.2)i(startup)e
|
||||
(\014les)h(are)f(executed)i(\()p Fs($ENV)p Ft(\))e(rather)g(than)g(the)
|
||||
g(normal)h(Bash)f(\014les.)199 2234 y(7.)61 b(Tilde)30
|
||||
b(expansion)g(is)f(only)h(p)s(erformed)f(on)h(assignmen)m(ts)g
|
||||
(preceding)g(a)g(command)g(name,)g(rather)330 2344 y(than)g(on)g(all)i
|
||||
(assignmen)m(t)f(statemen)m(ts)h(on)e(the)h(line.)199
|
||||
2484 y(8.)61 b(The)30 b(default)g(history)h(\014le)f(is)h(`)p
|
||||
Fs(~/.sh_history)p Ft(')c(\(this)k(is)f(the)g(default)h(v)-5
|
||||
b(alue)31 b(of)f Fs($HISTFILE)p Ft(\).)199 2624 y(9.)61
|
||||
Fs(SIGTSTP)p Ft(.)199 1520 y(4.)61 b(Reserv)m(ed)40 b(w)m(ords)g(app)s
|
||||
(earing)f(in)h(a)g(con)m(text)i(where)d(reserv)m(ed)h(w)m(ords)f(are)i
|
||||
(recognized)g(do)f(not)330 1630 y(undergo)30 b(alias)h(expansion.)199
|
||||
1760 y(5.)61 b(The)39 b Fl(posix)f Ft(1003.2)k Fs(PS1)d
|
||||
Ft(and)f Fs(PS2)h Ft(expansions)g(of)g(`)p Fs(!)p Ft(')h(to)g(the)f
|
||||
(history)g(n)m(um)m(b)s(er)f(and)h(`)p Fs(!!)p Ft(')g(to)330
|
||||
1870 y(`)p Fs(!)p Ft(')c(are)h(enabled,)h(and)e(parameter)g(expansion)h
|
||||
(is)f(p)s(erformed)f(on)h(the)h(v)-5 b(alues)35 b(of)h
|
||||
Fs(PS1)e Ft(and)h Fs(PS2)330 1979 y Ft(regardless)c(of)f(the)h(setting)
|
||||
g(of)g(the)f Fs(promptvars)e Ft(option.)199 2110 y(6.)61
|
||||
b(The)30 b Fl(posix)g Ft(1003.2)i(startup)e(\014les)h(are)f(executed)i
|
||||
(\()p Fs($ENV)p Ft(\))e(rather)g(than)g(the)g(normal)h(Bash)f(\014les.)
|
||||
199 2240 y(7.)61 b(Tilde)30 b(expansion)g(is)f(only)h(p)s(erformed)f
|
||||
(on)h(assignmen)m(ts)g(preceding)g(a)g(command)g(name,)g(rather)330
|
||||
2350 y(than)g(on)g(all)i(assignmen)m(t)f(statemen)m(ts)h(on)e(the)h
|
||||
(line.)199 2480 y(8.)61 b(The)30 b(default)g(history)h(\014le)f(is)h(`)
|
||||
p Fs(~/.sh_history)p Ft(')c(\(this)k(is)f(the)g(default)h(v)-5
|
||||
b(alue)31 b(of)f Fs($HISTFILE)p Ft(\).)199 2611 y(9.)61
|
||||
b(The)23 b(output)f(of)i(`)p Fs(kill)29 b(-l)p Ft(')23
|
||||
b(prin)m(ts)f(all)i(the)g(signal)f(names)g(on)g(a)h(single)g(line,)h
|
||||
(separated)e(b)m(y)g(spaces,)330 2733 y(without)30 b(the)h(`)p
|
||||
Fs(SIG)p Ft(')f(pre\014x.)154 2874 y(10.)61 b(The)30
|
||||
(separated)e(b)m(y)g(spaces,)330 2720 y(without)30 b(the)h(`)p
|
||||
Fs(SIG)p Ft(')f(pre\014x.)154 2851 y(10.)61 b(The)30
|
||||
b Fs(kill)f Ft(builtin)h(do)s(es)g(not)h(accept)h(signal)f(names)f
|
||||
(with)g(a)h(`)p Fs(SIG)p Ft(')f(pre\014x.)154 3014 y(11.)61
|
||||
(with)g(a)h(`)p Fs(SIG)p Ft(')f(pre\014x.)154 2981 y(11.)61
|
||||
b(Non-in)m(teractiv)m(e)34 b(shells)c(exit)h(if)g Fq(\014lename)k
|
||||
Ft(in)30 b Fs(.)g Fq(\014lename)36 b Ft(is)31 b(not)f(found.)154
|
||||
3154 y(12.)61 b(Non-in)m(teractiv)m(e)41 b(shells)d(exit)h(if)f(a)g
|
||||
3112 y(12.)61 b(Non-in)m(teractiv)m(e)41 b(shells)d(exit)h(if)f(a)g
|
||||
(syn)m(tax)g(error)g(in)f(an)h(arithmetic)h(expansion)f(results)f(in)h
|
||||
(an)330 3263 y(in)m(v)-5 b(alid)31 b(expression.)154
|
||||
3403 y(13.)61 b(Redirection)25 b(op)s(erators)f(do)g(not)g(p)s(erform)f
|
||||
(an)330 3221 y(in)m(v)-5 b(alid)31 b(expression.)154
|
||||
3352 y(13.)61 b(Redirection)25 b(op)s(erators)f(do)g(not)g(p)s(erform)f
|
||||
(\014lename)h(expansion)g(on)g(the)g(w)m(ord)f(in)h(the)g(redirection)
|
||||
330 3513 y(unless)30 b(the)g(shell)h(is)f(in)m(teractiv)m(e.)154
|
||||
3653 y(14.)61 b(Redirection)31 b(op)s(erators)g(do)f(not)h(p)s(erform)e
|
||||
330 3461 y(unless)30 b(the)g(shell)h(is)f(in)m(teractiv)m(e.)154
|
||||
3592 y(14.)61 b(Redirection)31 b(op)s(erators)g(do)f(not)h(p)s(erform)e
|
||||
(w)m(ord)h(splitting)h(on)f(the)h(w)m(ord)f(in)g(the)g(redirection.)154
|
||||
3793 y(15.)61 b(F)-8 b(unction)35 b(names)g(m)m(ust)f(b)s(e)g(v)-5
|
||||
3722 y(15.)61 b(F)-8 b(unction)35 b(names)g(m)m(ust)f(b)s(e)g(v)-5
|
||||
b(alid)35 b(shell)f Fs(name)p Ft(s.)52 b(That)34 b(is,)i(they)f(ma)m(y)
|
||||
g(not)g(con)m(tain)g(c)m(haracters)330 3903 y(other)e(than)g(letters,)h
|
||||
g(not)g(con)m(tain)g(c)m(haracters)330 3832 y(other)e(than)g(letters,)h
|
||||
(digits,)h(and)d(underscores,)h(and)f(ma)m(y)h(not)g(start)h(with)e(a)h
|
||||
(digit.)49 b(Declaring)330 4012 y(a)31 b(function)f(with)g(an)g(in)m(v)
|
||||
(digit.)49 b(Declaring)330 3941 y(a)31 b(function)f(with)g(an)g(in)m(v)
|
||||
-5 b(alid)31 b(name)g(causes)f(a)h(fatal)h(syn)m(tax)f(error)f(in)g
|
||||
(non-in)m(teractiv)m(e)j(shells.)154 4153 y(16.)61 b
|
||||
(non-in)m(teractiv)m(e)j(shells.)154 4072 y(16.)61 b
|
||||
Fl(posix)23 b Ft(1003.2)j(`sp)s(ecial')e(builtins)f(are)h(found)e(b)s
|
||||
(efore)h(shell)h(functions)f(during)f(command)h(lo)s(okup.)154
|
||||
4293 y(17.)61 b(If)33 b(a)h Fl(posix)f Ft(1003.2)j(sp)s(ecial)e
|
||||
4202 y(17.)61 b(If)33 b(a)h Fl(posix)f Ft(1003.2)j(sp)s(ecial)e
|
||||
(builtin)g(returns)e(an)i(error)f(status,)i(a)f(non-in)m(teractiv)m(e)i
|
||||
(shell)e(exits.)330 4402 y(The)43 b(fatal)j(errors)d(are)h(those)h
|
||||
(shell)e(exits.)330 4312 y(The)43 b(fatal)j(errors)d(are)h(those)h
|
||||
(listed)f(in)g(the)g(POSIX.2)g(standard,)j(and)c(include)h(things)g
|
||||
(lik)m(e)330 4512 y(passing)25 b(incorrect)i(options,)g(redirection)f
|
||||
(lik)m(e)330 4422 y(passing)25 b(incorrect)i(options,)g(redirection)f
|
||||
(errors,)g(v)-5 b(ariable)26 b(assignmen)m(t)g(errors)f(for)g
|
||||
(assignmen)m(ts)330 4621 y(preceding)30 b(the)h(command)f(name,)h(and)e
|
||||
(so)i(on.)154 4762 y(18.)61 b(If)33 b(the)h Fs(cd)f Ft(builtin)h
|
||||
(\014nds)e(a)i(directory)g(to)h(c)m(hange)g(to)f(using)g
|
||||
Fs($CDPATH)p Ft(,)f(the)h(v)-5 b(alue)34 b(it)g(assigns)g(to)330
|
||||
4871 y(the)d Fs(PWD)e Ft(v)-5 b(ariable)31 b(do)s(es)f(not)h(con)m
|
||||
(tain)h(an)m(y)e(sym)m(b)s(olic)h(links,)f(as)h(if)f(`)p
|
||||
Fs(cd)g(-P)p Ft(')g(had)g(b)s(een)g(executed.)154 5011
|
||||
y(19.)61 b(If)34 b Fs(CDPATH)f Ft(is)h(set,)i(the)f Fs(cd)f
|
||||
Ft(builtin)g(will)g(not)h(implicitly)h(app)s(end)c(the)j(curren)m(t)f
|
||||
(directory)h(to)g(it.)330 5121 y(This)29 b(means)g(that)h
|
||||
Fs(cd)f Ft(will)h(fail)g(if)g(no)f(v)-5 b(alid)30 b(directory)g(name)f
|
||||
(can)h(b)s(e)f(constructed)h(from)f(an)m(y)h(of)330 5230
|
||||
y(the)i(en)m(tries)g(in)f Fs($CDPATH)p Ft(,)e(ev)m(en)j(if)g(the)f(a)h
|
||||
(directory)g(with)f(the)g(same)h(name)f(as)h(the)g(name)f(giv)m(en)330
|
||||
5340 y(as)g(an)f(argumen)m(t)h(to)g Fs(cd)f Ft(exists)h(in)f(the)g
|
||||
(curren)m(t)g(directory)-8 b(.)p eop end
|
||||
(assignmen)m(ts)330 4531 y(preceding)30 b(the)h(command)f(name,)h(and)e
|
||||
(so)i(on.)154 4662 y(18.)61 b(If)34 b Fs(CDPATH)f Ft(is)h(set,)i(the)f
|
||||
Fs(cd)f Ft(builtin)g(will)g(not)h(implicitly)h(app)s(end)c(the)j
|
||||
(curren)m(t)f(directory)h(to)g(it.)330 4771 y(This)29
|
||||
b(means)g(that)h Fs(cd)f Ft(will)h(fail)g(if)g(no)f(v)-5
|
||||
b(alid)30 b(directory)g(name)f(can)h(b)s(e)f(constructed)h(from)f(an)m
|
||||
(y)h(of)330 4881 y(the)i(en)m(tries)g(in)f Fs($CDPATH)p
|
||||
Ft(,)e(ev)m(en)j(if)g(the)f(a)h(directory)g(with)f(the)g(same)h(name)f
|
||||
(as)h(the)g(name)f(giv)m(en)330 4990 y(as)g(an)f(argumen)m(t)h(to)g
|
||||
Fs(cd)f Ft(exists)h(in)f(the)g(curren)m(t)g(directory)-8
|
||||
b(.)154 5121 y(19.)61 b(A)31 b(non-in)m(teractiv)m(e)j(shell)d(exits)h
|
||||
(with)e(an)h(error)g(status)g(if)g(a)g(v)-5 b(ariable)32
|
||||
b(assignmen)m(t)g(error)e(o)s(ccurs)330 5230 y(when)38
|
||||
b(no)h(command)g(name)g(follo)m(ws)i(the)e(assignmen)m(t)h(statemen)m
|
||||
(ts.)69 b(A)39 b(v)-5 b(ariable)40 b(assignmen)m(t)330
|
||||
5340 y(error)30 b(o)s(ccurs,)g(for)g(example,)i(when)d(trying)i(to)g
|
||||
(assign)f(a)h(v)-5 b(alue)31 b(to)g(a)g(readonly)f(v)-5
|
||||
b(ariable.)p eop end
|
||||
%%Page: 80 86
|
||||
TeXDict begin 80 85 bop 150 -116 a Ft(80)2572 b(Bash)31
|
||||
b(Reference)g(Man)m(ual)154 299 y(20.)61 b(A)31 b(non-in)m(teractiv)m
|
||||
(e)j(shell)d(exits)h(with)e(an)h(error)g(status)g(if)g(a)g(v)-5
|
||||
b(ariable)32 b(assignmen)m(t)g(error)e(o)s(ccurs)330
|
||||
408 y(when)38 b(no)h(command)g(name)g(follo)m(ws)i(the)e(assignmen)m(t)
|
||||
h(statemen)m(ts.)69 b(A)39 b(v)-5 b(ariable)40 b(assignmen)m(t)330
|
||||
518 y(error)30 b(o)s(ccurs,)g(for)g(example,)i(when)d(trying)i(to)g
|
||||
(assign)f(a)h(v)-5 b(alue)31 b(to)g(a)g(readonly)f(v)-5
|
||||
b(ariable.)154 645 y(21.)61 b(A)43 b(non-in)m(teractiv)m(e)i(shell)e
|
||||
(exits)h(with)f(an)f(error)h(status)g(if)g(the)g(iteration)h(v)-5
|
||||
b(ariable)44 b(in)f(a)g Fs(for)330 755 y Ft(statemen)m(t)32
|
||||
b(Reference)g(Man)m(ual)154 299 y(20.)61 b(A)43 b(non-in)m(teractiv)m
|
||||
(e)i(shell)e(exits)h(with)f(an)f(error)h(status)g(if)g(the)g(iteration)
|
||||
h(v)-5 b(ariable)44 b(in)f(a)g Fs(for)330 408 y Ft(statemen)m(t)32
|
||||
b(or)f(the)f(selection)i(v)-5 b(ariable)32 b(in)e(a)g
|
||||
Fs(select)f Ft(statemen)m(t)j(is)f(a)f(readonly)h(v)-5
|
||||
b(ariable.)154 881 y(22.)61 b(Pro)s(cess)30 b(substitution)g(is)h(not)f
|
||||
(a)m(v)-5 b(ailable.)154 1008 y(23.)61 b(Assignmen)m(t)32
|
||||
b(ariable.)154 545 y(21.)61 b(Pro)s(cess)30 b(substitution)g(is)h(not)f
|
||||
(a)m(v)-5 b(ailable.)154 682 y(22.)61 b(Assignmen)m(t)32
|
||||
b(statemen)m(ts)g(preceding)f Fl(posix)g Ft(1003.2)i(sp)s(ecial)f
|
||||
(builtins)e(p)s(ersist)h(in)f(the)i(shell)f(en-)330 1118
|
||||
(builtins)e(p)s(ersist)h(in)f(the)i(shell)f(en-)330 792
|
||||
y(vironmen)m(t)g(after)f(the)h(builtin)f(completes.)154
|
||||
1245 y(24.)61 b(Assignmen)m(t)35 b(statemen)m(ts)h(preceding)f(shell)f
|
||||
929 y(23.)61 b(Assignmen)m(t)35 b(statemen)m(ts)h(preceding)f(shell)f
|
||||
(function)g(calls)i(p)s(ersist)e(in)g(the)h(shell)f(en)m(vironmen)m(t)
|
||||
330 1354 y(after)d(the)f(function)h(returns,)e(as)i(if)f(a)h
|
||||
330 1038 y(after)d(the)f(function)h(returns,)e(as)i(if)f(a)h
|
||||
Fl(posix)e Ft(sp)s(ecial)i(builtin)f(command)g(had)g(b)s(een)g
|
||||
(executed.)154 1481 y(25.)61 b(The)38 b Fs(export)f Ft(and)g
|
||||
(executed.)154 1175 y(24.)61 b(The)38 b Fs(export)f Ft(and)g
|
||||
Fs(readonly)f Ft(builtin)i(commands)g(displa)m(y)h(their)f(output)g(in)
|
||||
g(the)h(format)g(re-)330 1591 y(quired)30 b(b)m(y)g Fl(posix)f
|
||||
Ft(1003.2.)154 1718 y(26.)61 b(The)30 b Fs(trap)f Ft(builtin)h(displa)m
|
||||
g(the)h(format)g(re-)330 1285 y(quired)30 b(b)m(y)g Fl(posix)f
|
||||
Ft(1003.2.)154 1422 y(25.)61 b(The)30 b Fs(trap)f Ft(builtin)h(displa)m
|
||||
(ys)g(signal)i(names)e(without)g(the)h(leading)g Fs(SIG)p
|
||||
Ft(.)154 1845 y(27.)61 b(The)39 b Fs(trap)e Ft(builtin)i(do)s(esn't)g
|
||||
Ft(.)154 1558 y(26.)61 b(The)39 b Fs(trap)e Ft(builtin)i(do)s(esn't)g
|
||||
(c)m(hec)m(k)h(the)g(\014rst)e(argumen)m(t)i(for)e(a)i(p)s(ossible)e
|
||||
(signal)i(sp)s(eci\014cation)330 1954 y(and)30 b(rev)m(ert)i(the)e
|
||||
(signal)i(sp)s(eci\014cation)330 1668 y(and)30 b(rev)m(ert)i(the)e
|
||||
(signal)i(handling)e(to)h(the)g(original)h(disp)s(osition)e(if)h(it)g
|
||||
(is,)g(unless)f(that)h(argumen)m(t)330 2064 y(consists)e(solely)g(of)g
|
||||
(is,)g(unless)f(that)h(argumen)m(t)330 1778 y(consists)e(solely)g(of)g
|
||||
(digits)g(and)f(is)g(a)h(v)-5 b(alid)29 b(signal)g(n)m(um)m(b)s(er.)38
|
||||
b(If)28 b(users)g(w)m(an)m(t)h(to)g(reset)g(the)g(handler)330
|
||||
2173 y(for)h(a)g(giv)m(en)h(signal)g(to)f(the)h(original)g(disp)s
|
||||
1887 y(for)h(a)g(giv)m(en)h(signal)g(to)f(the)h(original)g(disp)s
|
||||
(osition,)f(they)g(should)f(use)h(`)p Fs(-)p Ft(')g(as)g(the)g(\014rst)
|
||||
f(argumen)m(t.)154 2300 y(28.)61 b(The)21 b Fs(.)h Ft(and)f
|
||||
f(argumen)m(t.)154 2024 y(27.)61 b(The)21 b Fs(.)h Ft(and)f
|
||||
Fs(source)f Ft(builtins)h(do)g(not)h(searc)m(h)h(the)f(curren)m(t)f
|
||||
(directory)h(for)g(the)g(\014lename)f(argumen)m(t)330
|
||||
2410 y(if)30 b(it)h(is)g(not)f(found)f(b)m(y)i(searc)m(hing)g
|
||||
Fs(PATH)p Ft(.)154 2537 y(29.)61 b(Subshells)20 b(spa)m(wned)h(to)h
|
||||
2134 y(if)30 b(it)h(is)g(not)f(found)f(b)m(y)i(searc)m(hing)g
|
||||
Fs(PATH)p Ft(.)154 2271 y(28.)61 b(Subshells)20 b(spa)m(wned)h(to)h
|
||||
(execute)g(command)g(substitutions)f(inherit)g(the)g(v)-5
|
||||
b(alue)22 b(of)g(the)f(`)p Fs(-e)p Ft(')g(option)330
|
||||
2646 y(from)34 b(the)h(paren)m(t)g(shell.)55 b(When)34
|
||||
2380 y(from)34 b(the)h(paren)m(t)g(shell.)55 b(When)34
|
||||
b(not)i(in)e Fl(posix)g Ft(mo)s(de,)i(Bash)f(clears)h(the)f(`)p
|
||||
Fs(-e)p Ft(')f(option)i(in)e(suc)m(h)330 2756 y(subshells.)154
|
||||
2883 y(30.)61 b(Alias)31 b(expansion)g(is)f(alw)m(a)m(ys)i(enabled,)e
|
||||
(ev)m(en)i(in)e(non-in)m(teractiv)m(e)j(shells.)154 3010
|
||||
y(31.)61 b(When)43 b(the)g Fs(alias)f Ft(builtin)g(displa)m(ys)i(alias)
|
||||
Fs(-e)p Ft(')f(option)i(in)e(suc)m(h)330 2490 y(subshells.)154
|
||||
2627 y(29.)61 b(Alias)31 b(expansion)g(is)f(alw)m(a)m(ys)i(enabled,)e
|
||||
(ev)m(en)i(in)e(non-in)m(teractiv)m(e)j(shells.)154 2763
|
||||
y(30.)61 b(When)43 b(the)g Fs(alias)f Ft(builtin)g(displa)m(ys)i(alias)
|
||||
g(de\014nitions,)i(it)d(do)s(es)g(not)g(displa)m(y)h(them)f(with)g(a)
|
||||
330 3119 y(leading)31 b(`)p Fs(alias)e Ft(')i(unless)f(the)g(`)p
|
||||
Fs(-p)p Ft(')g(option)h(is)g(supplied.)154 3246 y(32.)61
|
||||
330 2873 y(leading)31 b(`)p Fs(alias)e Ft(')i(unless)f(the)g(`)p
|
||||
Fs(-p)p Ft(')g(option)h(is)g(supplied.)154 3010 y(31.)61
|
||||
b(When)40 b(the)g Fs(set)f Ft(builtin)h(is)g(in)m(v)m(ok)m(ed)h
|
||||
(without)f(options,)j(it)e(do)s(es)f(not)g(displa)m(y)g(shell)g
|
||||
(function)330 3356 y(names)30 b(and)g(de\014nitions.)154
|
||||
3483 y(33.)61 b(When)36 b(the)g Fs(set)g Ft(builtin)g(is)g(in)m(v)m(ok)
|
||||
(function)330 3119 y(names)30 b(and)g(de\014nitions.)154
|
||||
3256 y(32.)61 b(When)36 b(the)g Fs(set)g Ft(builtin)g(is)g(in)m(v)m(ok)
|
||||
m(ed)i(without)e(options,)i(it)f(displa)m(ys)f(v)-5 b(ariable)37
|
||||
b(v)-5 b(alues)37 b(without)330 3592 y(quotes,)26 b(unless)d(they)i
|
||||
b(v)-5 b(alues)37 b(without)330 3366 y(quotes,)26 b(unless)d(they)i
|
||||
(con)m(tain)g(shell)f(metac)m(haracters,)k(ev)m(en)d(if)f(the)g(result)
|
||||
g(con)m(tains)i(nonprin)m(ting)330 3702 y(c)m(haracters.)154
|
||||
3829 y(34.)61 b(When)35 b(the)g Fs(cd)f Ft(builtin)h(is)g(in)m(v)m(ok)m
|
||||
g(con)m(tains)i(nonprin)m(ting)330 3476 y(c)m(haracters.)154
|
||||
3612 y(33.)61 b(When)35 b(the)g Fs(cd)f Ft(builtin)h(is)g(in)m(v)m(ok)m
|
||||
(ed)i(in)d Fq(logical)41 b Ft(mo)s(de,)36 b(and)f(the)g(pathname)g
|
||||
(constructed)g(from)330 3938 y Fs($PWD)i Ft(and)h(the)h(directory)f
|
||||
(constructed)g(from)330 3722 y Fs($PWD)i Ft(and)h(the)h(directory)f
|
||||
(name)h(supplied)e(as)i(an)f(argumen)m(t)h(do)s(es)f(not)g(refer)h(to)g
|
||||
(an)f(existing)330 4048 y(directory)-8 b(,)32 b Fs(cd)d
|
||||
(an)f(existing)330 3832 y(directory)-8 b(,)32 b Fs(cd)d
|
||||
Ft(will)i(fail)g(instead)g(of)f(falling)h(bac)m(k)h(to)f
|
||||
Fq(ph)m(ysical)j Ft(mo)s(de.)154 4175 y(35.)61 b(When)20
|
||||
Fq(ph)m(ysical)j Ft(mo)s(de.)154 3968 y(34.)61 b(When)20
|
||||
b(the)h Fs(pwd)e Ft(builtin)h(is)g(supplied)g(the)g(`)p
|
||||
Fs(-P)p Ft(')g(option,)j(it)e(resets)g Fs($PWD)e Ft(to)i(a)g(pathname)f
|
||||
(con)m(taining)330 4284 y(no)30 b(symlinks.)154 4411
|
||||
y(36.)61 b(When)35 b(listing)g(the)g(history)-8 b(,)36
|
||||
(con)m(taining)330 4078 y(no)30 b(symlinks.)154 4215
|
||||
y(35.)61 b(When)35 b(listing)g(the)g(history)-8 b(,)36
|
||||
b(the)f Fs(fc)g Ft(builtin)f(do)s(es)g(not)h(include)g(an)f(indication)
|
||||
i(of)f(whether)f(or)330 4521 y(not)d(a)f(history)h(en)m(try)f(has)g(b)s
|
||||
(een)g(mo)s(di\014ed.)154 4648 y(37.)61 b(The)30 b(default)g(editor)h
|
||||
(used)f(b)m(y)g Fs(fc)g Ft(is)g Fs(ed)p Ft(.)154 4775
|
||||
y(38.)61 b(The)37 b Fs(type)g Ft(and)g Fs(command)f Ft(builtins)i(will)
|
||||
i(of)f(whether)f(or)330 4324 y(not)d(a)f(history)h(en)m(try)f(has)g(b)s
|
||||
(een)g(mo)s(di\014ed.)154 4461 y(36.)61 b(The)30 b(default)g(editor)h
|
||||
(used)f(b)m(y)g Fs(fc)g Ft(is)g Fs(ed)p Ft(.)154 4598
|
||||
y(37.)61 b(The)37 b Fs(type)g Ft(and)g Fs(command)f Ft(builtins)i(will)
|
||||
g(not)g(rep)s(ort)f(a)i(non-executable)g(\014le)f(as)g(ha)m(ving)h(b)s
|
||||
(een)330 4884 y(found,)26 b(though)h(the)g(shell)g(will)g(attempt)h(to)
|
||||
(een)330 4708 y(found,)26 b(though)h(the)g(shell)g(will)g(attempt)h(to)
|
||||
g(execute)g(suc)m(h)f(a)g(\014le)g(if)g(it)g(is)g(the)g(only)g
|
||||
(so-named)g(\014le)330 4994 y(found)i(in)h Fs($PATH)p
|
||||
Ft(.)154 5121 y(39.)61 b(When)41 b(the)g Fs(xpg_echo)e
|
||||
(so-named)g(\014le)330 4817 y(found)i(in)h Fs($PATH)p
|
||||
Ft(.)154 4954 y(38.)61 b(When)41 b(the)g Fs(xpg_echo)e
|
||||
Ft(option)i(is)g(enabled,)j(Bash)d(do)s(es)g(not)g(attempt)h(to)g(in)m
|
||||
(terpret)f(an)m(y)h(ar-)330 5230 y(gumen)m(ts)35 b(to)g
|
||||
(terpret)f(an)m(y)h(ar-)330 5064 y(gumen)m(ts)35 b(to)g
|
||||
Fs(echo)e Ft(as)i(options.)54 b(Eac)m(h)35 b(argumen)m(t)g(is)f(displa)
|
||||
m(y)m(ed,)j(after)e(escap)s(e)g(c)m(haracters)h(are)330
|
||||
5340 y(con)m(v)m(erted.)p eop end
|
||||
5173 y(con)m(v)m(erted.)275 5340 y(There)29 b(is)i(other)f
|
||||
Fl(posix)g Ft(1003.2)j(b)s(eha)m(vior)d(that)h(Bash)g(do)s(es)f(not)h
|
||||
(implemen)m(t.)41 b(Sp)s(eci\014cally:)p eop end
|
||||
%%Page: 81 87
|
||||
TeXDict begin 81 86 bop 150 -116 a Ft(Chapter)30 b(6:)41
|
||||
b(Bash)30 b(F)-8 b(eatures)2484 b(81)275 299 y(There)29
|
||||
b(is)i(other)f Fl(posix)g Ft(1003.2)j(b)s(eha)m(vior)d(that)h(Bash)g
|
||||
(do)s(es)f(not)h(implemen)m(t.)41 b(Sp)s(eci\014cally:)199
|
||||
433 y(1.)61 b(Assignmen)m(t)26 b(statemen)m(ts)i(a\013ect)f(the)f
|
||||
(execution)g(en)m(vironmen)m(t)h(of)f(all)g(builtins,)g(not)g(just)f
|
||||
(sp)s(ecial)330 543 y(ones.)199 677 y(2.)61 b(When)20
|
||||
b(a)h(subshell)f(is)h(created)g(to)h(execute)g(a)f(shell)f(script)h
|
||||
(with)f(execute)i(p)s(ermission,)g(but)e(without)330
|
||||
787 y(a)35 b(leading)h(`)p Fs(#!)p Ft(',)g(Bash)g(sets)f
|
||||
Fs($0)f Ft(to)i(the)f(full)g(pathname)g(of)g(the)g(script)g(as)g(found)
|
||||
f(b)m(y)h(searc)m(hing)330 897 y Fs($PATH)p Ft(,)29 b(rather)h(than)h
|
||||
(the)f(command)g(as)h(t)m(yp)s(ed)f(b)m(y)g(the)h(user.)199
|
||||
1031 y(3.)61 b(When)28 b(using)f(`)p Fs(.)p Ft(')h(to)g(source)g(a)h
|
||||
(shell)f(script)f(found)g(in)g Fs($PATH)p Ft(,)h(bash)f(c)m(hec)m(ks)i
|
||||
(execute)g(p)s(ermission)330 1141 y(bits)h(rather)h(than)f(read)g(p)s
|
||||
(ermission)f(bits,)i(just)f(as)g(if)g(it)h(w)m(ere)g(searc)m(hing)g
|
||||
(for)g(a)f(command.)p eop end
|
||||
b(Bash)30 b(F)-8 b(eatures)2484 b(81)199 299 y(1.)61
|
||||
b(Assignmen)m(t)26 b(statemen)m(ts)i(a\013ect)f(the)f(execution)g(en)m
|
||||
(vironmen)m(t)h(of)f(all)g(builtins,)g(not)g(just)f(sp)s(ecial)330
|
||||
408 y(ones.)199 543 y(2.)61 b(When)20 b(a)h(subshell)f(is)h(created)g
|
||||
(to)h(execute)g(a)f(shell)f(script)h(with)f(execute)i(p)s(ermission,)g
|
||||
(but)e(without)330 653 y(a)35 b(leading)h(`)p Fs(#!)p
|
||||
Ft(',)g(Bash)g(sets)f Fs($0)f Ft(to)i(the)f(full)g(pathname)g(of)g(the)
|
||||
g(script)g(as)g(found)f(b)m(y)h(searc)m(hing)330 762
|
||||
y Fs($PATH)p Ft(,)29 b(rather)h(than)h(the)f(command)g(as)h(t)m(yp)s
|
||||
(ed)f(b)m(y)g(the)h(user.)199 897 y(3.)61 b(When)28 b(using)f(`)p
|
||||
Fs(.)p Ft(')h(to)g(source)g(a)h(shell)f(script)f(found)g(in)g
|
||||
Fs($PATH)p Ft(,)h(bash)f(c)m(hec)m(ks)i(execute)g(p)s(ermission)330
|
||||
1006 y(bits)h(rather)h(than)f(read)g(p)s(ermission)f(bits,)i(just)f(as)
|
||||
g(if)g(it)h(w)m(ere)g(searc)m(hing)g(for)g(a)f(command.)p
|
||||
eop end
|
||||
%%Page: 82 88
|
||||
TeXDict begin 82 87 bop 150 -116 a Ft(82)2572 b(Bash)31
|
||||
b(Reference)g(Man)m(ual)p eop end
|
||||
|
||||
Reference in New Issue
Block a user