mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-06-29 08:29:54 +02:00
commit bash-20111028 snapshot
This commit is contained in:
+96
-88
@@ -11,7 +11,7 @@
|
||||
%DVIPSWebPage: (www.radicaleye.com)
|
||||
%DVIPSCommandLine: dvips -D 600 -t letter -o bashref.ps bashref.dvi
|
||||
%DVIPSParameters: dpi=600
|
||||
%DVIPSSource: TeX output 2011.09.26:1056
|
||||
%DVIPSSource: TeX output 2011.10.24:0843
|
||||
%%BeginProcSet: tex.pro 0 0
|
||||
%!
|
||||
/TeXDict 300 dict def TeXDict begin/N{def}def/B{bind def}N/S{exch}N/X{S
|
||||
@@ -4323,30 +4323,29 @@ 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)2428 1589 y(Edition)h(4.2,)g(for)f
|
||||
Fs(Bash)g Ft(V)-8 b(ersion)31 b(4.2.)3118 1697 y(Septem)m(b)s(er)f
|
||||
(2011)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
|
||||
Fs(Bash)g Ft(V)-8 b(ersion)31 b(4.2.)3217 1697 y(Octob)s(er)f(2011)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(4.2,)c(25)f(Septem)m(b)s
|
||||
(er)f(2011\).)150 3133 y(This)e(is)h(Edition)f(4.2,)j(last)e(up)s
|
||||
(dated)f(25)h(Septem)m(b)s(er)f(2011,)j(of)e Fq(The)f(GNU)i(Bash)e
|
||||
(Reference)i(Man)m(ual)p Ft(,)150 3243 y(for)g Fs(Bash)p
|
||||
Ft(,)g(V)-8 b(ersion)31 b(4.2.)150 3377 y(Cop)m(yrigh)m(t)602
|
||||
3374 y(c)577 3377 y Fp(\015)f Ft(1988{2011)35 b(F)-8
|
||||
b(ree)31 b(Soft)m(w)m(are)h(F)-8 b(oundation,)31 b(Inc.)150
|
||||
3512 y(P)m(ermission)h(is)h(gran)m(ted)g(to)f(mak)m(e)i(and)d
|
||||
(distribute)h(v)m(erbatim)h(copies)g(of)f(this)g(man)m(ual)h(pro)m
|
||||
(vided)f(the)150 3621 y(cop)m(yrigh)m(t)g(notice)f(and)f(this)g(p)s
|
||||
(ermission)g(notice)h(are)g(preserv)m(ed)f(on)h(all)g(copies.)390
|
||||
3756 y(P)m(ermission)k(is)h(gran)m(ted)f(to)h(cop)m(y)-8
|
||||
b(,)38 b(distribute)d(and/or)g(mo)s(dify)f(this)h(do)s(cumen)m(t)g
|
||||
(under)390 3866 y(the)j(terms)g(of)g(the)g(GNU)h(F)-8
|
||||
b(ree)39 b(Do)s(cumen)m(tation)h(License,)g(V)-8 b(ersion)39
|
||||
b(1.3)g(or)f(an)m(y)g(later)390 3975 y(v)m(ersion)28
|
||||
(the)h(Bash)f(shell)h(\(v)m(ersion)150 2999 y(4.2,)c(24)f(Octob)s(er)f
|
||||
(2011\).)150 3133 y(This)35 b(is)g(Edition)h(4.2,)i(last)f(up)s(dated)d
|
||||
(24)i(Octob)s(er)g(2011,)j(of)c Fq(The)h(GNU)g(Bash)f(Reference)i(Man)m
|
||||
(ual)p Ft(,)150 3243 y(for)30 b Fs(Bash)p Ft(,)g(V)-8
|
||||
b(ersion)31 b(4.2.)150 3377 y(Cop)m(yrigh)m(t)602 3374
|
||||
y(c)577 3377 y Fp(\015)f Ft(1988{2011)35 b(F)-8 b(ree)31
|
||||
b(Soft)m(w)m(are)h(F)-8 b(oundation,)31 b(Inc.)150 3512
|
||||
y(P)m(ermission)h(is)h(gran)m(ted)g(to)f(mak)m(e)i(and)d(distribute)h
|
||||
(v)m(erbatim)h(copies)g(of)f(this)g(man)m(ual)h(pro)m(vided)f(the)150
|
||||
3621 y(cop)m(yrigh)m(t)g(notice)f(and)f(this)g(p)s(ermission)g(notice)h
|
||||
(are)g(preserv)m(ed)f(on)h(all)g(copies.)390 3756 y(P)m(ermission)k(is)
|
||||
h(gran)m(ted)f(to)h(cop)m(y)-8 b(,)38 b(distribute)d(and/or)g(mo)s
|
||||
(dify)f(this)h(do)s(cumen)m(t)g(under)390 3866 y(the)j(terms)g(of)g
|
||||
(the)g(GNU)h(F)-8 b(ree)39 b(Do)s(cumen)m(tation)h(License,)g(V)-8
|
||||
b(ersion)39 b(1.3)g(or)f(an)m(y)g(later)390 3975 y(v)m(ersion)28
|
||||
b(published)d(b)m(y)j(the)f(F)-8 b(ree)29 b(Soft)m(w)m(are)f(F)-8
|
||||
b(oundation;)30 b(with)d(no)g(In)m(v)-5 b(arian)m(t)28
|
||||
b(Sections,)390 4085 y(with)i(the)h(F)-8 b(ron)m(t-Co)m(v)m(er)33
|
||||
@@ -6955,52 +6954,56 @@ Fq(n)p Ft(,)g(or)g(the)h(standard)e(output)h(\(\014le)h(descriptor)f
|
||||
(1\))h(if)g Fq(n)e Ft(is)i(not)150 665 y(sp)s(eci\014ed.)40
|
||||
b(If)30 b(the)g(\014le)h(do)s(es)f(not)h(exist)g(it)g(is)f(created;)i
|
||||
(if)e(it)h(do)s(es)f(exist)h(it)g(is)g(truncated)f(to)h(zero)g(size.)
|
||||
275 823 y(The)e(general)j(format)e(for)h(redirecting)g(output)f(is:)390
|
||||
981 y Fs([)p Fi(n)11 b Fs(]>[|])p Fi(word)275 1139 y
|
||||
275 812 y(The)e(general)j(format)e(for)h(redirecting)g(output)f(is:)390
|
||||
959 y Fs([)p Fi(n)11 b Fs(]>[|])p Fi(word)275 1107 y
|
||||
Ft(If)30 b(the)h(redirection)g(op)s(erator)g(is)g(`)p
|
||||
Fs(>)p Ft(',)g(and)f(the)h Fs(noclobber)d Ft(option)j(to)g(the)g
|
||||
Fs(set)f Ft(builtin)g(has)h(b)s(een)150 1249 y(enabled,)i(the)f
|
||||
Fs(set)f Ft(builtin)g(has)h(b)s(een)150 1216 y(enabled,)i(the)f
|
||||
(redirection)h(will)f(fail)h(if)f(the)g(\014le)g(whose)g(name)g
|
||||
(results)g(from)g(the)g(expansion)g(of)g Fq(w)m(ord)150
|
||||
1359 y Ft(exists)f(and)f(is)g(a)h(regular)g(\014le.)41
|
||||
1326 y Ft(exists)f(and)f(is)g(a)h(regular)g(\014le.)41
|
||||
b(If)30 b(the)h(redirection)g(op)s(erator)g(is)f(`)p
|
||||
Fs(>|)p Ft(',)h(or)f(the)h(redirection)g(op)s(erator)g(is)150
|
||||
1468 y(`)p Fs(>)p Ft(')36 b(and)f(the)g Fs(noclobber)e
|
||||
1435 y(`)p Fs(>)p Ft(')36 b(and)f(the)g Fs(noclobber)e
|
||||
Ft(option)j(is)g(not)g(enabled,)h(the)e(redirection)h(is)g(attempted)g
|
||||
(ev)m(en)h(if)e(the)h(\014le)150 1578 y(named)30 b(b)m(y)g
|
||||
Fq(w)m(ord)k Ft(exists.)150 1801 y Fj(3.6.3)63 b(App)s(ending)42
|
||||
b(Redirected)e(Output)150 1948 y Ft(Redirection)23 b(of)e(output)h(in)f
|
||||
(ev)m(en)h(if)e(the)h(\014le)150 1545 y(named)30 b(b)m(y)g
|
||||
Fq(w)m(ord)k Ft(exists.)150 1757 y Fj(3.6.3)63 b(App)s(ending)42
|
||||
b(Redirected)e(Output)150 1904 y Ft(Redirection)23 b(of)e(output)h(in)f
|
||||
(this)h(fashion)f(causes)h(the)g(\014le)g(whose)f(name)h(results)f
|
||||
(from)g(the)h(expansion)g(of)150 2057 y Fq(w)m(ord)28
|
||||
(from)g(the)h(expansion)g(of)150 2013 y Fq(w)m(ord)28
|
||||
b Ft(to)e(b)s(e)e(op)s(ened)g(for)h(app)s(ending)e(on)i(\014le)g
|
||||
(descriptor)g Fq(n)p Ft(,)g(or)g(the)g(standard)f(output)h(\(\014le)g
|
||||
(descriptor)150 2167 y(1\))31 b(if)f Fq(n)g Ft(is)h(not)f(sp)s
|
||||
(descriptor)150 2123 y(1\))31 b(if)f Fq(n)g Ft(is)h(not)f(sp)s
|
||||
(eci\014ed.)40 b(If)30 b(the)h(\014le)f(do)s(es)g(not)h(exist)g(it)g
|
||||
(is)f(created.)275 2325 y(The)f(general)j(format)e(for)h(app)s(ending)e
|
||||
(output)h(is:)390 2483 y Fs([)p Fi(n)11 b Fs(]>>)p Fi(word)150
|
||||
2706 y Fj(3.6.4)63 b(Redirecting)40 b(Standard)h(Output)g(and)g
|
||||
(Standard)g(Error)150 2853 y Ft(This)33 b(construct)i(allo)m(ws)g(b)s
|
||||
(is)f(created.)275 2270 y(The)f(general)j(format)e(for)h(app)s(ending)e
|
||||
(output)h(is:)390 2417 y Fs([)p Fi(n)11 b Fs(]>>)p Fi(word)150
|
||||
2629 y Fj(3.6.4)63 b(Redirecting)40 b(Standard)h(Output)g(and)g
|
||||
(Standard)g(Error)150 2776 y Ft(This)33 b(construct)i(allo)m(ws)g(b)s
|
||||
(oth)f(the)g(standard)g(output)f(\(\014le)i(descriptor)f(1\))h(and)f
|
||||
(the)g(standard)f(error)150 2963 y(output)d(\(\014le)h(descriptor)f
|
||||
(the)g(standard)f(error)150 2886 y(output)d(\(\014le)h(descriptor)f
|
||||
(2\))h(to)g(b)s(e)f(redirected)h(to)g(the)f(\014le)h(whose)f(name)h(is)
|
||||
f(the)g(expansion)h(of)f Fq(w)m(ord)t Ft(.)275 3121 y(There)f(are)i(t)m
|
||||
f(the)g(expansion)h(of)f Fq(w)m(ord)t Ft(.)275 3033 y(There)f(are)i(t)m
|
||||
(w)m(o)h(formats)e(for)h(redirecting)g(standard)e(output)h(and)g
|
||||
(standard)f(error:)390 3279 y Fs(&>)p Fi(word)150 3437
|
||||
y Ft(and)390 3595 y Fs(>&)p Fi(word)150 3753 y Ft(Of)h(the)g(t)m(w)m(o)
|
||||
(standard)f(error:)390 3180 y Fs(&>)p Fi(word)150 3328
|
||||
y Ft(and)390 3475 y Fs(>&)p Fi(word)150 3622 y Ft(Of)h(the)g(t)m(w)m(o)
|
||||
i(forms,)e(the)h(\014rst)e(is)i(preferred.)39 b(This)30
|
||||
b(is)g(seman)m(tically)j(equiv)-5 b(alen)m(t)32 b(to)390
|
||||
3912 y Fs(>)p Fi(word)57 b Fs(2>&1)275 4070 y Ft(\(see)31
|
||||
b(Duplicating)h(File)f(Descriptors)g(b)s(elo)m(w\).)150
|
||||
4293 y Fj(3.6.5)63 b(App)s(ending)42 b(Standard)f(Output)g(and)g
|
||||
(Standard)g(Error)150 4440 y Ft(This)33 b(construct)i(allo)m(ws)g(b)s
|
||||
3769 y Fs(>)p Fi(word)57 b Fs(2>&1)275 3916 y Ft(When)41
|
||||
b(using)g(the)h(second)f(form,)k Fq(w)m(ord)f Ft(ma)m(y)e(not)g(expand)
|
||||
f(to)h(a)g(n)m(um)m(b)s(er)f(or)g(`)p Fs(-)p Ft('.)75
|
||||
b(If)41 b(it)h(do)s(es,)150 4026 y(other)27 b(redirection)g(op)s
|
||||
(erators)f(apply)h(\(see)g(Duplicating)h(File)f(Descriptors)h(b)s(elo)m
|
||||
(w\))f(for)f(compatibilit)m(y)150 4135 y(reasons.)150
|
||||
4347 y Fj(3.6.5)63 b(App)s(ending)42 b(Standard)f(Output)g(and)g
|
||||
(Standard)g(Error)150 4494 y Ft(This)33 b(construct)i(allo)m(ws)g(b)s
|
||||
(oth)f(the)g(standard)g(output)f(\(\014le)i(descriptor)f(1\))h(and)f
|
||||
(the)g(standard)f(error)150 4549 y(output)d(\(\014le)h(descriptor)f
|
||||
(the)g(standard)f(error)150 4604 y(output)d(\(\014le)h(descriptor)f
|
||||
(2\))h(to)g(b)s(e)f(app)s(ended)f(to)i(the)f(\014le)h(whose)f(name)g
|
||||
(is)h(the)f(expansion)h(of)f Fq(w)m(ord)t Ft(.)275 4707
|
||||
(is)h(the)f(expansion)h(of)f Fq(w)m(ord)t Ft(.)275 4751
|
||||
y(The)f(format)i(for)f(app)s(ending)f(standard)h(output)g(and)f
|
||||
(standard)h(error)g(is:)390 4866 y Fs(&>>)p Fi(word)150
|
||||
5024 y Ft(This)g(is)g(seman)m(tically)j(equiv)-5 b(alen)m(t)32
|
||||
b(to)390 5182 y Fs(>>)p Fi(word)57 b Fs(2>&1)275 5340
|
||||
(standard)h(error)g(is:)390 4898 y Fs(&>>)p Fi(word)150
|
||||
5046 y Ft(This)g(is)g(seman)m(tically)j(equiv)-5 b(alen)m(t)32
|
||||
b(to)390 5193 y Fs(>>)p Fi(word)57 b Fs(2>&1)275 5340
|
||||
y Ft(\(see)31 b(Duplicating)h(File)f(Descriptors)g(b)s(elo)m(w\).)p
|
||||
eop end
|
||||
%%Page: 30 36
|
||||
@@ -7067,12 +7070,14 @@ b Fq(n)f Ft(is)i(not)f(sp)s(eci\014ed,)i(the)f(standard)150
|
||||
5011 y(output)30 b(\(\014le)g(descriptor)g(1\))h(is)f(used.)39
|
||||
b(If)30 b(the)g(digits)h(in)e Fq(w)m(ord)34 b Ft(do)29
|
||||
b(not)i(sp)s(ecify)e(a)i(\014le)f(descriptor)g(op)s(en)150
|
||||
5121 y(for)38 b(output,)i(a)e(redirection)h(error)f(o)s(ccurs.)63
|
||||
b(As)38 b(a)h(sp)s(ecial)f(case,)k(if)c Fq(n)f Ft(is)h(omitted,)k(and)
|
||||
37 b Fq(w)m(ord)k Ft(do)s(es)150 5230 y(not)28 b(expand)f(to)i(one)f
|
||||
(or)f(more)h(digits,)i(the)e(standard)e(output)i(and)f(standard)g
|
||||
(error)g(are)i(redirected)f(as)150 5340 y(describ)s(ed)h(previously)-8
|
||||
b(.)p eop end
|
||||
5121 y(for)35 b(output,)h(a)g(redirection)g(error)e(o)s(ccurs.)55
|
||||
b(If)35 b Fq(w)m(ord)j Ft(ev)-5 b(aluates)37 b(to)f(`)p
|
||||
Fs(-)p Ft(',)h(\014le)e(descriptor)g Fq(n)g Ft(is)g(closed.)150
|
||||
5230 y(As)f(a)g(sp)s(ecial)h(case,)h(if)e Fq(n)f Ft(is)h(omitted,)i
|
||||
(and)e Fq(w)m(ord)j Ft(do)s(es)d(not)g(expand)f(to)i(one)f(or)g(more)g
|
||||
(digits)h(or)f(`)p Fs(-)p Ft(',)150 5340 y(the)d(standard)e(output)h
|
||||
(and)g(standard)f(error)h(are)h(redirected)g(as)g(describ)s(ed)e
|
||||
(previously)-8 b(.)p eop end
|
||||
%%Page: 31 37
|
||||
TeXDict begin 31 36 bop 150 -116 a Ft(Chapter)30 b(3:)41
|
||||
b(Basic)32 b(Shell)e(F)-8 b(eatures)2246 b(31)150 299
|
||||
@@ -7818,65 +7823,68 @@ b(in)f(the)h(function.)53 b Fs(return)33 b Ft(ma)m(y)i(also)g(b)s(e)f
|
||||
(used)f(to)j(terminate)f(execution)h(of)630 408 y(a)e(script)g(b)s
|
||||
(eing)g(executed)g(with)g(the)g Fs(.)g Ft(\()p Fs(source)p
|
||||
Ft(\))f(builtin,)h(returning)f(either)i Fq(n)e Ft(or)h(the)630
|
||||
518 y(exit)29 b(status)f(of)g(the)h(last)g(command)e(executed)i(within)
|
||||
f(the)g(script)g(as)g(the)g(exit)h(status)g(of)630 628
|
||||
y(the)34 b(script.)51 b(An)m(y)34 b(command)g(asso)s(ciated)h(with)f
|
||||
(the)g Fs(RETURN)e Ft(trap)i(is)g(executed)g(b)s(efore)630
|
||||
737 y(execution)d(resumes)e(after)i(the)f(function)f(or)h(script.)40
|
||||
b(The)30 b(return)f(status)h(is)g(non-zero)g(if)630 847
|
||||
y Fs(return)c Ft(is)i(used)f(outside)h(a)h(function)e(and)g(not)i
|
||||
(during)d(the)i(execution)h(of)f(a)h(script)e(b)m(y)h
|
||||
Fs(.)630 956 y Ft(or)i Fs(source)p Ft(.)150 1130 y Fs(shift)870
|
||||
1271 y(shift)46 b([)p Fi(n)11 b Fs(])630 1413 y Ft(Shift)41
|
||||
518 y(exit)j(status)f(of)g(the)g(last)h(command)e(executed)i(within)e
|
||||
(the)h(script)g(as)g(the)g(exit)h(status)630 628 y(of)i(the)g(script.)
|
||||
65 b(If)38 b Fq(n)g Ft(is)h(supplied,)h(the)f(return)e(v)-5
|
||||
b(alue)39 b(is)g(its)g(least)h(signi\014can)m(t)g(8)f(bits.)630
|
||||
737 y(An)m(y)g(command)f(asso)s(ciated)j(with)d(the)h
|
||||
Fs(RETURN)e Ft(trap)i(is)g(executed)g(b)s(efore)g(execution)630
|
||||
847 y(resumes)29 b(after)h(the)g(function)g(or)g(script.)40
|
||||
b(The)29 b(return)g(status)h(is)g(non-zero)g(if)g Fs(return)e
|
||||
Ft(is)630 956 y(supplied)h(a)i(non-n)m(umeric)g(argumen)m(t)g(or)f(is)h
|
||||
(used)f(outside)h(a)g(function)f(and)g(not)h(during)630
|
||||
1066 y(the)g(execution)g(of)g(a)f(script)h(b)m(y)f Fs(.)g
|
||||
Ft(or)g Fs(source)p Ft(.)150 1230 y Fs(shift)870 1367
|
||||
y(shift)46 b([)p Fi(n)11 b Fs(])630 1504 y Ft(Shift)41
|
||||
b(the)g(p)s(ositional)h(parameters)g(to)g(the)f(left)h(b)m(y)g
|
||||
Fq(n)p Ft(.)73 b(The)40 b(p)s(ositional)j(parameters)630
|
||||
1523 y(from)34 b Fq(n)p Fs(+)p Ft(1)39 b(.)22 b(.)h(.)45
|
||||
1614 y(from)34 b Fq(n)p Fs(+)p Ft(1)39 b(.)22 b(.)h(.)45
|
||||
b Fs($#)34 b Ft(are)g(renamed)g(to)h Fs($1)k Ft(.)22
|
||||
b(.)g(.)46 b Fs($#)p Ft(-)p Fq(n)p Ft(.)51 b(P)m(arameters)36
|
||||
b(represen)m(ted)e(b)m(y)g(the)630 1632 y(n)m(um)m(b)s(ers)25
|
||||
b(represen)m(ted)e(b)m(y)g(the)630 1724 y(n)m(um)m(b)s(ers)25
|
||||
b Fs($#)i Ft(to)g Fs($#)p Ft(-)p Fq(n)p Fs(+)p Ft(1)g(are)g(unset.)39
|
||||
b Fq(n)26 b Ft(m)m(ust)h(b)s(e)f(a)i(non-negativ)m(e)h(n)m(um)m(b)s(er)
|
||||
c(less)i(than)g(or)630 1742 y(equal)33 b(to)h Fs($#)p
|
||||
c(less)i(than)g(or)630 1833 y(equal)33 b(to)h Fs($#)p
|
||||
Ft(.)47 b(If)33 b Fq(n)f Ft(is)h(zero)g(or)g(greater)h(than)f
|
||||
Fs($#)p Ft(,)g(the)g(p)s(ositional)g(parameters)g(are)h(not)630
|
||||
1851 y(c)m(hanged.)48 b(If)32 b Fq(n)g Ft(is)h(not)f(supplied,)h(it)g
|
||||
1943 y(c)m(hanged.)48 b(If)32 b Fq(n)g Ft(is)h(not)f(supplied,)h(it)g
|
||||
(is)f(assumed)g(to)h(b)s(e)f(1.)48 b(The)32 b(return)g(status)h(is)f
|
||||
(zero)630 1961 y(unless)e Fq(n)f Ft(is)i(greater)g(than)g
|
||||
(zero)630 2052 y(unless)e Fq(n)f Ft(is)i(greater)g(than)g
|
||||
Fs($#)e Ft(or)i(less)f(than)h(zero,)g(non-zero)g(otherwise.)150
|
||||
2134 y Fs(test[B)150 2244 y([)870 2386 y(test)47 b Fi(expr)630
|
||||
2527 y Ft(Ev)-5 b(aluate)43 b(a)f(conditional)h(expression)f
|
||||
2217 y Fs(test[B)150 2326 y([)870 2463 y(test)47 b Fi(expr)630
|
||||
2600 y Ft(Ev)-5 b(aluate)43 b(a)f(conditional)h(expression)f
|
||||
Fq(expr)48 b Ft(and)41 b(return)g(a)h(status)g(of)g(0)g(\(true\))h(or)f
|
||||
(1)630 2637 y(\(false\).)g(Eac)m(h)31 b(op)s(erator)f(and)f(op)s(erand)
|
||||
(1)630 2710 y(\(false\).)g(Eac)m(h)31 b(op)s(erator)f(and)f(op)s(erand)
|
||||
g(m)m(ust)h(b)s(e)f(a)i(separate)g(argumen)m(t.)41 b(Expressions)630
|
||||
2746 y(are)26 b(comp)s(osed)f(of)g(the)h(primaries)f(describ)s(ed)f(b)s
|
||||
2819 y(are)26 b(comp)s(osed)f(of)g(the)h(primaries)f(describ)s(ed)f(b)s
|
||||
(elo)m(w)h(in)g(Section)h(6.4)h([Bash)e(Conditional)630
|
||||
2856 y(Expressions],)39 b(page)g(80.)64 b Fs(test)37
|
||||
2929 y(Expressions],)39 b(page)g(80.)64 b Fs(test)37
|
||||
b Ft(do)s(es)g(not)h(accept)i(an)m(y)e(options,)i(nor)e(do)s(es)f(it)h
|
||||
(accept)630 2966 y(and)30 b(ignore)h(an)f(argumen)m(t)h(of)f(`)p
|
||||
(accept)630 3039 y(and)30 b(ignore)h(an)f(argumen)m(t)h(of)f(`)p
|
||||
Fs(--)p Ft(')h(as)f(signifying)h(the)f(end)g(of)h(options.)630
|
||||
3107 y(When)f(the)h Fs([)f Ft(form)g(is)g(used,)g(the)g(last)i(argumen)
|
||||
3176 y(When)f(the)h Fs([)f Ft(form)g(is)g(used,)g(the)g(last)i(argumen)
|
||||
m(t)e(to)i(the)e(command)g(m)m(ust)h(b)s(e)e(a)i Fs(])p
|
||||
Ft(.)630 3249 y(Expressions)23 b(ma)m(y)h(b)s(e)e(com)m(bined)i(using)f
|
||||
Ft(.)630 3313 y(Expressions)23 b(ma)m(y)h(b)s(e)e(com)m(bined)i(using)f
|
||||
(the)h(follo)m(wing)h(op)s(erators,)g(listed)f(in)f(decreasing)630
|
||||
3358 y(order)30 b(of)h(precedence.)43 b(The)30 b(ev)-5
|
||||
3422 y(order)30 b(of)h(precedence.)43 b(The)30 b(ev)-5
|
||||
b(aluation)33 b(dep)s(ends)28 b(on)j(the)g(n)m(um)m(b)s(er)f(of)h
|
||||
(argumen)m(ts;)g(see)630 3468 y(b)s(elo)m(w.)41 b(Op)s(erator)30
|
||||
(argumen)m(ts;)g(see)630 3532 y(b)s(elo)m(w.)41 b(Op)s(erator)30
|
||||
b(precedence)h(is)f(used)g(when)f(there)i(are)f(\014v)m(e)h(or)f(more)h
|
||||
(argumen)m(ts.)630 3641 y Fs(!)f Fi(expr)210 b Ft(T)-8
|
||||
b(rue)30 b(if)g Fq(expr)37 b Ft(is)30 b(false.)630 3815
|
||||
(argumen)m(ts.)630 3696 y Fs(!)f Fi(expr)210 b Ft(T)-8
|
||||
b(rue)30 b(if)g Fq(expr)37 b Ft(is)30 b(false.)630 3861
|
||||
y Fs(\()g Fi(expr)40 b Fs(\))122 b Ft(Returns)23 b(the)h(v)-5
|
||||
b(alue)24 b(of)g Fq(expr)7 b Ft(.)37 b(This)23 b(ma)m(y)i(b)s(e)e(used)
|
||||
g(to)h(o)m(v)m(erride)h(the)f(normal)1110 3924 y(precedence)31
|
||||
b(of)f(op)s(erators.)630 4098 y Fi(expr1)39 b Fs(-a)30
|
||||
b Fi(expr2)1110 4208 y Ft(T)-8 b(rue)30 b(if)g(b)s(oth)g
|
||||
g(to)h(o)m(v)m(erride)h(the)f(normal)1110 3970 y(precedence)31
|
||||
b(of)f(op)s(erators.)630 4134 y Fi(expr1)39 b Fs(-a)30
|
||||
b Fi(expr2)1110 4244 y Ft(T)-8 b(rue)30 b(if)g(b)s(oth)g
|
||||
Fq(expr1)37 b Ft(and)30 b Fq(expr2)38 b Ft(are)30 b(true.)630
|
||||
4381 y Fi(expr1)39 b Fs(-o)30 b Fi(expr2)1110 4491 y
|
||||
4408 y Fi(expr1)39 b Fs(-o)30 b Fi(expr2)1110 4518 y
|
||||
Ft(T)-8 b(rue)30 b(if)g(either)h Fq(expr1)38 b Ft(or)30
|
||||
b Fq(expr2)37 b Ft(is)31 b(true.)630 4664 y(The)37 b
|
||||
b Fq(expr2)37 b Ft(is)31 b(true.)630 4682 y(The)37 b
|
||||
Fs(test)f Ft(and)g Fs([)h Ft(builtins)g(ev)-5 b(aluate)39
|
||||
b(conditional)f(expressions)f(using)g(a)g(set)h(of)f(rules)630
|
||||
4774 y(based)30 b(on)g(the)h(n)m(um)m(b)s(er)e(of)h(argumen)m(ts.)630
|
||||
4947 y(0)h(argumen)m(ts)1110 5057 y(The)f(expression)g(is)g(false.)630
|
||||
4792 y(based)30 b(on)g(the)h(n)m(um)m(b)s(er)e(of)h(argumen)m(ts.)630
|
||||
4956 y(0)h(argumen)m(ts)1110 5066 y(The)f(expression)g(is)g(false.)630
|
||||
5230 y(1)h(argumen)m(t)1110 5340 y(The)f(expression)g(is)g(true)h(if)f
|
||||
(and)g(only)g(if)h(the)f(argumen)m(t)h(is)f(not)h(n)m(ull.)p
|
||||
eop end
|
||||
|
||||
Reference in New Issue
Block a user