commit bash-20160129 snapshot

This commit is contained in:
Chet Ramey
2016-02-09 09:03:09 -05:00
parent 037a8b7fe4
commit d345f817ff
85 changed files with 7032 additions and 7018 deletions
+155 -151
View File
@@ -1,7 +1,7 @@
%!PS-Adobe-2.0
%%Creator: dvips(k) 5.995 Copyright 2015 Radical Eye Software
%%Title: bashref.dvi
%%CreationDate: Wed Jan 20 13:59:11 2016
%%CreationDate: Mon Jan 25 10:12:29 2016
%%Pages: 177
%%PageOrder: Ascend
%%BoundingBox: 0 0 612 792
@@ -12,7 +12,7 @@
%DVIPSWebPage: (www.radicaleye.com)
%DVIPSCommandLine: dvips -D 600 -t letter -o bashref.ps bashref.dvi
%DVIPSParameters: dpi=600
%DVIPSSource: TeX output 2016.01.20:1359
%DVIPSSource: TeX output 2016.01.25:1012
%%BeginProcSet: tex.pro 0 0
%!
/TeXDict 300 dict def TeXDict begin/N{def}def/B{bind def}N/S{exch}N/X{S
@@ -7518,22 +7518,22 @@ ifelse
TeXDict begin 1 0 bop 150 1318 a Fv(Bash)64 b(Reference)j(Man)-5
b(ual)p 150 1385 3600 34 v 2361 1481 a Fu(Reference)31
b(Do)s(cumen)m(tation)i(for)d(Bash)2428 1589 y(Edition)h(4.4,)g(for)f
Ft(Bash)g Fu(V)-8 b(ersion)31 b(4.4.)3139 1697 y(No)m(v)m(em)m(b)s(er)g
(2015)150 4927 y Fs(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
Ft(Bash)g Fu(V)-8 b(ersion)31 b(4.4.)3218 1697 y(Jan)m(uary)f(2016)150
4927 y Fs(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 4279 a Fu(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 4389 y(4.4,)c(16)f(No)m(v)m(em)m
(b)s(er)g(2015\).)150 4523 y(This)e(is)i(Edition)f(4.4,)h(last)g(up)s
(dated)e(16)i(No)m(v)m(em)m(b)s(er)h(2015,)g(of)e Fr(The)g(GNU)h(Bash)f
(Reference)h(Man)m(ual)p Fu(,)150 4633 y(for)f Ft(Bash)p
Fu(,)g(V)-8 b(ersion)31 b(4.4.)150 4767 y(Cop)m(yrigh)m(t)602
4764 y(c)577 4767 y Fq(\015)f Fu(1988{2015)35 b(F)-8
b(ree)31 b(Soft)m(w)m(are)h(F)-8 b(oundation,)31 b(Inc.)390
4902 y(P)m(ermission)21 b(is)f(gran)m(ted)h(to)g(cop)m(y)-8
(the)h(Bash)f(shell)h(\(v)m(ersion)150 4389 y(4.4,)c(25)f(Jan)m(uary)f
(2016\).)150 4523 y(This)35 b(is)h(Edition)f(4.4,)k(last)d(up)s(dated)f
(25)h(Jan)m(uary)f(2016,)k(of)d Fr(The)f(GNU)i(Bash)e(Reference)i(Man)m
(ual)p Fu(,)150 4633 y(for)30 b Ft(Bash)p Fu(,)g(V)-8
b(ersion)31 b(4.4.)150 4767 y(Cop)m(yrigh)m(t)602 4764
y(c)577 4767 y Fq(\015)f Fu(1988{2016)35 b(F)-8 b(ree)31
b(Soft)m(w)m(are)h(F)-8 b(oundation,)31 b(Inc.)390 4902
y(P)m(ermission)21 b(is)f(gran)m(ted)h(to)g(cop)m(y)-8
b(,)24 b(distribute)c(and/or)h(mo)s(dify)e(this)i(do)s(cumen)m(t)f
(under)f(the)390 5011 y(terms)25 b(of)h(the)f(GNU)h(F)-8
b(ree)27 b(Do)s(cumen)m(tation)g(License,)g(V)-8 b(ersion)26
@@ -10155,247 +10155,251 @@ Ft(>)f Fu(and)g(the)h(left)h(paren)m(thesis,)f(otherwise)h(the)f
(redirection.)59 b(Pro)s(cess)36 b(substitution)g(is)h(supp)s(orted)d
(on)i(systems)g(that)150 956 y(supp)s(ort)29 b(named)h(pip)s(es)f(\()p
Fm(fif)n(o)p Fu(s\))h(or)h(the)f Ft(/dev/fd)f Fu(metho)s(d)h(of)g
(naming)g(op)s(en)g(\014les.)275 1085 y(When)36 b(a)m(v)-5
(naming)g(op)s(en)g(\014les.)275 1099 y(When)36 b(a)m(v)-5
b(ailable,)40 b(pro)s(cess)c(substitution)h(is)f(p)s(erformed)f(sim)m
(ultaneously)i(with)g(parameter)g(and)150 1195 y(v)-5
(ultaneously)i(with)g(parameter)g(and)150 1209 y(v)-5
b(ariable)31 b(expansion,)g(command)f(substitution,)g(and)g(arithmetic)
i(expansion.)150 1383 y Fk(3.5.7)63 b(W)-10 b(ord)41
b(Splitting)150 1530 y Fu(The)30 b(shell)h(scans)g(the)g(results)f(of)h
i(expansion.)150 1417 y Fk(3.5.7)63 b(W)-10 b(ord)41
b(Splitting)150 1564 y Fu(The)30 b(shell)h(scans)g(the)g(results)f(of)h
(parameter)g(expansion,)g(command)g(substitution,)g(and)f(arithmetic)
150 1640 y(expansion)g(that)h(did)f(not)g(o)s(ccur)h(within)e(double)h
(quotes)h(for)f(w)m(ord)g(splitting.)275 1769 y(The)e(shell)g(treats)i
150 1673 y(expansion)g(that)h(did)f(not)g(o)s(ccur)h(within)e(double)h
(quotes)h(for)f(w)m(ord)g(splitting.)275 1816 y(The)e(shell)g(treats)i
(eac)m(h)g(c)m(haracter)g(of)f Ft($IFS)e Fu(as)i(a)g(delimiter,)h(and)e
(splits)g(the)h(results)f(of)h(the)g(other)150 1878 y(expansions)22
(splits)g(the)h(results)f(of)h(the)g(other)150 1926 y(expansions)22
b(in)m(to)i(w)m(ords)e(using)h(these)g(c)m(haracters)h(as)f(\014eld)f
(terminators.)39 b(If)22 b Ft(IFS)g Fu(is)h(unset,)h(or)e(its)h(v)-5
b(alue)150 1988 y(is)36 b(exactly)j Ft(<space><tab><newline>)p
b(alue)150 2036 y(is)36 b(exactly)j Ft(<space><tab><newline>)p
Fu(,)32 b(the)37 b(default,)h(then)e(sequences)h(of)67
b Ft(<space>)p Fu(,)36 b Ft(<tab>)p Fu(,)h(and)150 2097
b Ft(<space>)p Fu(,)36 b Ft(<tab>)p Fu(,)h(and)150 2145
y Ft(<newline>)28 b Fu(at)k(the)f(b)s(eginning)f(and)h(end)f(of)h(the)g
(results)g(of)g(the)g(previous)g(expansions)f(are)i(ignored,)150
2207 y(and)k(an)m(y)h(sequence)h(of)f Ft(IFS)f Fu(c)m(haracters)i(not)f
2255 y(and)k(an)m(y)h(sequence)h(of)f Ft(IFS)f Fu(c)m(haracters)i(not)f
(at)h(the)f(b)s(eginning)f(or)h(end)f(serv)m(es)h(to)h(delimit)f(w)m
(ords.)150 2317 y(If)43 b Ft(IFS)f Fu(has)h(a)h(v)-5
(ords.)150 2364 y(If)43 b Ft(IFS)f Fu(has)h(a)h(v)-5
b(alue)43 b(other)h(than)f(the)g(default,)k(then)c(sequences)h(of)f
(the)h(whitespace)f(c)m(haracters)150 2426 y Ft(space)p
(the)h(whitespace)f(c)m(haracters)150 2474 y Ft(space)p
Fu(,)29 b Ft(tab)p Fu(,)h(and)g Ft(newline)e Fu(are)j(ignored)g(at)g
(the)f(b)s(eginning)g(and)g(end)g(of)g(the)h(w)m(ord,)f(as)h(long)g(as)
g(the)150 2536 y(whitespace)c(c)m(haracter)h(is)f(in)f(the)g(v)-5
g(the)150 2584 y(whitespace)c(c)m(haracter)h(is)f(in)f(the)g(v)-5
b(alue)27 b(of)g Ft(IFS)e Fu(\(an)i Ft(IFS)e Fu(whitespace)i(c)m
(haracter\).)42 b(An)m(y)26 b(c)m(haracter)i(in)150 2645
(haracter\).)42 b(An)m(y)26 b(c)m(haracter)i(in)150 2693
y Ft(IFS)c Fu(that)h(is)g(not)f Ft(IFS)g Fu(whitespace,)j(along)f(with)
e(an)m(y)h(adjacen)m(t)h Ft(IFS)e Fu(whitespace)h(c)m(haracters,)i
(delimits)150 2755 y(a)k(\014eld.)40 b(A)31 b(sequence)g(of)f
(delimits)150 2803 y(a)k(\014eld.)40 b(A)31 b(sequence)g(of)f
Ft(IFS)g Fu(whitespace)h(c)m(haracters)h(is)e(also)h(treated)h(as)f(a)f
(delimiter.)42 b(If)30 b(the)g(v)-5 b(alue)150 2865 y(of)31
(delimiter.)42 b(If)30 b(the)g(v)-5 b(alue)150 2912 y(of)31
b Ft(IFS)e Fu(is)h(n)m(ull,)h(no)f(w)m(ord)g(splitting)h(o)s(ccurs.)275
2993 y(Explicit)21 b(n)m(ull)g(argumen)m(ts)g(\()p Ft("")g
3055 y(Explicit)21 b(n)m(ull)g(argumen)m(ts)g(\()p Ft("")g
Fu(or)g Ft('')p Fu(\))f(are)h(retained)h(and)e(passed)g(to)i(commands)e
(as)i(empt)m(y)f(strings.)150 3103 y(Unquoted)37 b(implicit)i(n)m(ull)f
(as)i(empt)m(y)f(strings.)150 3165 y(Unquoted)37 b(implicit)i(n)m(ull)f
(argumen)m(ts,)i(resulting)d(from)g(the)h(expansion)g(of)g(parameters)f
(that)i(ha)m(v)m(e)150 3213 y(no)32 b(v)-5 b(alues,)33
(that)i(ha)m(v)m(e)150 3275 y(no)32 b(v)-5 b(alues,)33
b(are)f(remo)m(v)m(ed.)47 b(If)32 b(a)g(parameter)h(with)e(no)h(v)-5
b(alue)33 b(is)f(expanded)f(within)h(double)f(quotes,)j(a)150
3322 y(n)m(ull)c(argumen)m(t)g(results)g(and)f(is)h(retained)g(and)f
3384 y(n)m(ull)c(argumen)m(t)g(results)g(and)f(is)h(retained)g(and)f
(passed)g(to)i(a)f(command)g(as)g(an)f(empt)m(y)i(string.)40
b(When)150 3432 y(a)f(quoted)f(n)m(ull)g(argumen)m(t)h(app)s(ears)e(as)
b(When)150 3494 y(a)f(quoted)f(n)m(ull)g(argumen)m(t)h(app)s(ears)e(as)
i(part)f(of)g(a)g(w)m(ord)g(whose)g(expansion)g(is)h(non-n)m(ull,)h
(the)e(n)m(ull)150 3541 y(argumen)m(t)31 b(is)f(remo)m(v)m(ed.)275
3670 y(Note)h(that)g(if)g(no)f(expansion)g(o)s(ccurs,)g(no)h(splitting)
g(is)f(p)s(erformed.)150 3859 y Fk(3.5.8)63 b(Filename)41
b(Expansion)150 4006 y Fu(After)30 b(w)m(ord)f(splitting,)i(unless)d
(the)i Ft(-f)f Fu(option)h(has)f(b)s(een)g(set)h(\(see)g(Section)h
(4.3.1)g([The)e(Set)h(Builtin],)150 4115 y(page)d(59\),)i(Bash)d(scans)
h(eac)m(h)h(w)m(ord)e(for)g(the)h(c)m(haracters)g(`)p
Ft(*)p Fu(',)h(`)p Ft(?)p Fu(',)g(and)e(`)p Ft([)p Fu('.)39
b(If)26 b(one)h(of)g(these)f(c)m(haracters)150 4225 y(app)s(ears,)h
(the)e(n)m(ull)150 3603 y(argumen)m(t)i(is)f(remo)m(v)m(ed.)69
b(That)39 b(is,)j(the)e(w)m(ord)f Ft(-d'')f Fu(b)s(ecomes)i
Ft(-d)e Fu(after)i(w)m(ord)f(splitting)h(and)f(n)m(ull)150
3713 y(argumen)m(t)31 b(remo)m(v)-5 b(al.)275 3856 y(Note)31
b(that)g(if)g(no)f(expansion)g(o)s(ccurs,)g(no)h(splitting)g(is)f(p)s
(erformed.)150 4064 y Fk(3.5.8)63 b(Filename)41 b(Expansion)150
4211 y Fu(After)30 b(w)m(ord)f(splitting,)i(unless)d(the)i
Ft(-f)f Fu(option)h(has)f(b)s(een)g(set)h(\(see)g(Section)h(4.3.1)g
([The)e(Set)h(Builtin],)150 4320 y(page)d(59\),)i(Bash)d(scans)h(eac)m
(h)h(w)m(ord)e(for)g(the)h(c)m(haracters)g(`)p Ft(*)p
Fu(',)h(`)p Ft(?)p Fu(',)g(and)e(`)p Ft([)p Fu('.)39
b(If)26 b(one)h(of)g(these)f(c)m(haracters)150 4430 y(app)s(ears,)h
(then)f(the)h(w)m(ord)f(is)h(regarded)g(as)g(a)g Fr(pattern)p
Fu(,)g(and)g(replaced)g(with)f(an)h(alphab)s(etically)h(sorted)150
4334 y(list)k(of)f(\014lenames)g(matc)m(hing)h(the)f(pattern)g(\(see)h
4539 y(list)k(of)f(\014lenames)g(matc)m(hing)h(the)f(pattern)g(\(see)h
(Section)f(3.5.8.1)j([P)m(attern)e(Matc)m(hing],)h(page)f(31\).)43
b(If)150 4444 y(no)26 b(matc)m(hing)i(\014lenames)e(are)h(found,)f(and)
b(If)150 4649 y(no)26 b(matc)m(hing)i(\014lenames)e(are)h(found,)f(and)
g(the)h(shell)f(option)h Ft(nullglob)d Fu(is)j(disabled,)g(the)g(w)m
(ord)f(is)g(left)150 4553 y(unc)m(hanged.)40 b(If)30
(ord)f(is)g(left)150 4759 y(unc)m(hanged.)40 b(If)30
b(the)g Ft(nullglob)e Fu(option)i(is)h(set,)f(and)g(no)g(matc)m(hes)h
(are)g(found,)e(the)h(w)m(ord)g(is)g(remo)m(v)m(ed.)150
4663 y(If)i(the)g Ft(failglob)e Fu(shell)i(option)h(is)f(set,)h(and)f
4868 y(If)i(the)g Ft(failglob)e Fu(shell)i(option)h(is)f(set,)h(and)f
(no)g(matc)m(hes)h(are)g(found,)e(an)h(error)g(message)h(is)f(prin)m
(ted)150 4773 y(and)e(the)g(command)g(is)h(not)f(executed.)42
(ted)150 4978 y(and)e(the)g(command)g(is)h(not)f(executed.)42
b(If)30 b(the)g(shell)h(option)g Ft(nocaseglob)c Fu(is)k(enabled,)f
(the)h(matc)m(h)g(is)150 4882 y(p)s(erformed)e(without)h(regard)h(to)g
(the)h(matc)m(h)g(is)150 5087 y(p)s(erformed)e(without)h(regard)h(to)g
(the)f(case)i(of)e(alphab)s(etic)h(c)m(haracters.)275
5011 y(When)23 b(a)h(pattern)f(is)h(used)f(for)g(\014lename)h
5230 y(When)23 b(a)h(pattern)f(is)h(used)f(for)g(\014lename)h
(expansion,)h(the)e(c)m(haracter)i(`)p Ft(.)p Fu(')f(at)g(the)g(start)g
(of)g(a)g(\014lename)150 5121 y(or)f(immediately)i(follo)m(wing)g(a)f
(of)g(a)g(\014lename)150 5340 y(or)f(immediately)i(follo)m(wing)g(a)f
(slash)f(m)m(ust)h(b)s(e)f(matc)m(hed)h(explicitly)-8
b(,)27 b(unless)c(the)g(shell)h(option)g Ft(dotglob)150
5230 y Fu(is)33 b(set.)51 b(When)33 b(matc)m(hing)h(a)g(\014lename,)h
(the)e(slash)h(c)m(haracter)h(m)m(ust)e(alw)m(a)m(ys)i(b)s(e)e(matc)m
(hed)h(explicitly)-8 b(.)150 5340 y(In)30 b(other)g(cases,)i(the)e(`)p
Ft(.)p Fu(')h(c)m(haracter)h(is)e(not)h(treated)g(sp)s(ecially)-8
b(.)p eop end
b(,)27 b(unless)c(the)g(shell)h(option)g Ft(dotglob)p
eop end
%%Page: 31 37
TeXDict begin 31 36 bop 150 -116 a Fu(Chapter)30 b(3:)41
b(Basic)32 b(Shell)e(F)-8 b(eatures)2246 b(31)275 299
y(See)28 b(the)g(description)g(of)g Ft(shopt)e Fu(in)i(Section)g(4.3.2)
i([The)e(Shopt)f(Builtin],)i(page)g(63,)g(for)f(a)g(descrip-)150
408 y(tion)j(of)f(the)h Ft(nocaseglob)p Fu(,)d Ft(nullglob)p
Fu(,)g Ft(failglob)p Fu(,)h(and)g Ft(dotglob)g Fu(options.)275
548 y(The)j Ft(GLOBIGNORE)f Fu(shell)i(v)-5 b(ariable)34
b(ma)m(y)g(b)s(e)f(used)f(to)i(restrict)g(the)g(set)f(of)h(\014lenames)
f(matc)m(hing)i(a)150 657 y(pattern.)k(If)25 b Ft(GLOBIGNORE)e
Fu(is)j(set,)h(eac)m(h)g(matc)m(hing)g(\014lename)f(that)g(also)h(matc)
m(hes)f(one)g(of)g(the)g(patterns)150 767 y(in)36 b Ft(GLOBIGNORE)d
Fu(is)j(remo)m(v)m(ed)h(from)e(the)i(list)f(of)g(matc)m(hes.)59
b(If)36 b(the)g Ft(nocaseglob)d Fu(option)k(is)f(set,)i(the)150
876 y(matc)m(hing)i(against)g(the)f(patterns)f(in)h Ft(GLOBIGNORE)d
b(Basic)32 b(Shell)e(F)-8 b(eatures)2246 b(31)150 299
y(is)33 b(set.)51 b(When)33 b(matc)m(hing)h(a)g(\014lename,)h(the)e
(slash)h(c)m(haracter)h(m)m(ust)e(alw)m(a)m(ys)i(b)s(e)e(matc)m(hed)h
(explicitly)-8 b(.)150 408 y(In)30 b(other)g(cases,)i(the)e(`)p
Ft(.)p Fu(')h(c)m(haracter)h(is)e(not)h(treated)g(sp)s(ecially)-8
b(.)275 536 y(See)28 b(the)g(description)g(of)g Ft(shopt)e
Fu(in)i(Section)g(4.3.2)i([The)e(Shopt)f(Builtin],)i(page)g(63,)g(for)f
(a)g(descrip-)150 646 y(tion)j(of)f(the)h Ft(nocaseglob)p
Fu(,)d Ft(nullglob)p Fu(,)g Ft(failglob)p Fu(,)h(and)g
Ft(dotglob)g Fu(options.)275 773 y(The)j Ft(GLOBIGNORE)f
Fu(shell)i(v)-5 b(ariable)34 b(ma)m(y)g(b)s(e)f(used)f(to)i(restrict)g
(the)g(set)f(of)h(\014lenames)f(matc)m(hing)i(a)150 883
y(pattern.)k(If)25 b Ft(GLOBIGNORE)e Fu(is)j(set,)h(eac)m(h)g(matc)m
(hing)g(\014lename)f(that)g(also)h(matc)m(hes)f(one)g(of)g(the)g
(patterns)150 992 y(in)36 b Ft(GLOBIGNORE)d Fu(is)j(remo)m(v)m(ed)h
(from)e(the)i(list)f(of)g(matc)m(hes.)59 b(If)36 b(the)g
Ft(nocaseglob)d Fu(option)k(is)f(set,)i(the)150 1102
y(matc)m(hing)i(against)g(the)f(patterns)f(in)h Ft(GLOBIGNORE)d
Fu(is)j(p)s(erformed)e(without)h(regard)h(to)h(case.)66
b(The)150 986 y(\014lenames)41 b Ft(.)f Fu(and)g Ft(..)h
b(The)150 1212 y(\014lenames)41 b Ft(.)f Fu(and)g Ft(..)h
Fu(are)g(alw)m(a)m(ys)h(ignored)f(when)f Ft(GLOBIGNORE)e
Fu(is)i(set)i(and)e(not)h(n)m(ull.)72 b(Ho)m(w)m(ev)m(er,)150
1096 y(setting)30 b Ft(GLOBIGNORE)d Fu(to)j(a)f(non-n)m(ull)g(v)-5
1321 y(setting)30 b Ft(GLOBIGNORE)d Fu(to)j(a)f(non-n)m(ull)g(v)-5
b(alue)30 b(has)f(the)g(e\013ect)i(of)f(enabling)f(the)h
Ft(dotglob)d Fu(shell)i(option,)150 1205 y(so)j(all)h(other)f
Ft(dotglob)d Fu(shell)i(option,)150 1431 y(so)j(all)h(other)f
(\014lenames)g(b)s(eginning)f(with)h(a)g(`)p Ft(.)p Fu(')g(will)h(matc)
m(h.)46 b(T)-8 b(o)32 b(get)h(the)f(old)g(b)s(eha)m(vior)g(of)h
(ignoring)150 1315 y(\014lenames)c(b)s(eginning)f(with)h(a)h(`)p
(ignoring)150 1540 y(\014lenames)c(b)s(eginning)f(with)h(a)h(`)p
Ft(.)p Fu(',)f(mak)m(e)h(`)p Ft(.*)p Fu(')f(one)h(of)f(the)g(patterns)g
(in)g Ft(GLOBIGNORE)p Fu(.)37 b(The)29 b Ft(dotglob)150
1424 y Fu(option)i(is)f(disabled)g(when)g Ft(GLOBIGNORE)d
Fu(is)k(unset.)150 1628 y Fk(3.5.8.1)63 b(P)m(attern)40
b(Matc)m(hing)150 1775 y Fu(An)m(y)24 b(c)m(haracter)h(that)f(app)s
1650 y Fu(option)i(is)f(disabled)g(when)g Ft(GLOBIGNORE)d
Fu(is)k(unset.)150 1835 y Fk(3.5.8.1)63 b(P)m(attern)40
b(Matc)m(hing)150 1982 y Fu(An)m(y)24 b(c)m(haracter)h(that)f(app)s
(ears)f(in)g(a)h(pattern,)i(other)e(than)f(the)h(sp)s(ecial)g(pattern)g
(c)m(haracters)h(describ)s(ed)150 1885 y(b)s(elo)m(w,)31
(c)m(haracters)h(describ)s(ed)150 2092 y(b)s(elo)m(w,)31
b(matc)m(hes)g(itself.)42 b(The)29 b Fm(nul)h Fu(c)m(haracter)i(ma)m(y)
e(not)h(o)s(ccur)f(in)g(a)h(pattern.)40 b(A)31 b(bac)m(kslash)g(escap)s
(es)150 1994 y(the)38 b(follo)m(wing)g(c)m(haracter;)43
(es)150 2201 y(the)38 b(follo)m(wing)g(c)m(haracter;)43
b(the)37 b(escaping)i(bac)m(kslash)e(is)h(discarded)f(when)f(matc)m
(hing.)63 b(The)36 b(sp)s(ecial)150 2104 y(pattern)30
(hing.)63 b(The)36 b(sp)s(ecial)150 2311 y(pattern)30
b(c)m(haracters)i(m)m(ust)f(b)s(e)e(quoted)i(if)f(they)h(are)f(to)i(b)s
(e)d(matc)m(hed)i(literally)-8 b(.)275 2243 y(The)29
(e)d(matc)m(hed)i(literally)-8 b(.)275 2439 y(The)29
b(sp)s(ecial)i(pattern)g(c)m(haracters)h(ha)m(v)m(e)f(the)g(follo)m
(wing)h(meanings:)150 2410 y Ft(*)432 b Fu(Matc)m(hes)31
(wing)h(meanings:)150 2584 y Ft(*)432 b Fu(Matc)m(hes)31
b(an)m(y)e(string,)h(including)f(the)g(n)m(ull)g(string.)41
b(When)29 b(the)g Ft(globstar)e Fu(shell)i(option)630
2519 y(is)37 b(enabled,)h(and)e(`)p Ft(*)p Fu(')h(is)g(used)f(in)g(a)h
2694 y(is)37 b(enabled,)h(and)e(`)p Ft(*)p Fu(')h(is)g(used)f(in)g(a)h
(\014lename)g(expansion)g(con)m(text,)j(t)m(w)m(o)e(adjacen)m(t)g(`)p
Ft(*)p Fu('s)630 2629 y(used)f(as)g(a)h(single)g(pattern)g(will)f(matc)
Ft(*)p Fu('s)630 2803 y(used)f(as)g(a)h(single)g(pattern)g(will)f(matc)
m(h)i(all)f(\014les)f(and)g(zero)h(or)g(more)f(directories)i(and)630
2738 y(sub)s(directories.)g(If)25 b(follo)m(w)m(ed)j(b)m(y)e(a)g(`)p
2913 y(sub)s(directories.)g(If)25 b(follo)m(w)m(ed)j(b)m(y)e(a)g(`)p
Ft(/)p Fu(',)h(t)m(w)m(o)g(adjacen)m(t)h(`)p Ft(*)p Fu('s)e(will)g
(matc)m(h)h(only)f(directories)630 2848 y(and)k(sub)s(directories.)150
3012 y Ft(?)432 b Fu(Matc)m(hes)32 b(an)m(y)f(single)g(c)m(haracter.)
150 3176 y Ft([...)o(])241 b Fu(Matc)m(hes)27 b(an)m(y)e(one)g(of)g
(matc)m(h)h(only)f(directories)630 3022 y(and)k(sub)s(directories.)150
3168 y Ft(?)432 b Fu(Matc)m(hes)32 b(an)m(y)f(single)g(c)m(haracter.)
150 3313 y Ft([...)o(])241 b Fu(Matc)m(hes)27 b(an)m(y)e(one)g(of)g
(the)g(enclosed)g(c)m(haracters.)41 b(A)25 b(pair)f(of)h(c)m(haracters)
i(separated)e(b)m(y)g(a)630 3286 y(h)m(yphen)k(denotes)i(a)g
i(separated)e(b)m(y)g(a)630 3423 y(h)m(yphen)k(denotes)i(a)g
Fr(range)g(expression)p Fu(;)f(an)m(y)h(c)m(haracter)h(that)f(falls)g
(b)s(et)m(w)m(een)g(those)g(t)m(w)m(o)630 3395 y(c)m(haracters,)d
(b)s(et)m(w)m(een)g(those)g(t)m(w)m(o)630 3533 y(c)m(haracters,)d
(inclusiv)m(e,)f(using)d(the)h(curren)m(t)f(lo)s(cale's)j(collating)g
(sequence)e(and)f(c)m(haracter)630 3505 y(set,)31 b(is)f(matc)m(hed.)42
(sequence)e(and)f(c)m(haracter)630 3642 y(set,)31 b(is)f(matc)m(hed.)42
b(If)30 b(the)g(\014rst)g(c)m(haracter)i(follo)m(wing)g(the)e(`)p
Ft([)p Fu(')h(is)f(a)h(`)p Ft(!)p Fu(')f(or)g(a)h(`)p
Ft(^)p Fu(')g(then)f(an)m(y)630 3614 y(c)m(haracter)c(not)f(enclosed)g
Ft(^)p Fu(')g(then)f(an)m(y)630 3752 y(c)m(haracter)c(not)f(enclosed)g
(is)g(matc)m(hed.)40 b(A)25 b(`)p Fq(\000)p Fu(')f(ma)m(y)i(b)s(e)e
(matc)m(hed)h(b)m(y)f(including)h(it)g(as)g(the)630 3724
(matc)m(hed)h(b)m(y)f(including)h(it)g(as)g(the)630 3861
y(\014rst)32 b(or)h(last)h(c)m(haracter)h(in)e(the)g(set.)50
b(A)33 b(`)p Ft(])p Fu(')g(ma)m(y)h(b)s(e)e(matc)m(hed)i(b)m(y)f
(including)g(it)g(as)h(the)630 3834 y(\014rst)25 b(c)m(haracter)i(in)e
(including)g(it)g(as)h(the)630 3971 y(\014rst)25 b(c)m(haracter)i(in)e
(the)h(set.)40 b(The)25 b(sorting)h(order)f(of)h(c)m(haracters)h(in)f
(range)g(expressions)f(is)630 3943 y(determined)h(b)m(y)h(the)g(curren)
(range)g(expressions)f(is)630 4081 y(determined)h(b)m(y)h(the)g(curren)
m(t)f(lo)s(cale)j(and)d(the)h(v)-5 b(alues)27 b(of)g(the)g
Ft(LC_COLLATE)d Fu(and)i Ft(LC_ALL)630 4053 y Fu(shell)31
b(v)-5 b(ariables,)31 b(if)f(set.)630 4190 y(F)-8 b(or)34
Ft(LC_COLLATE)d Fu(and)i Ft(LC_ALL)630 4190 y Fu(shell)31
b(v)-5 b(ariables,)31 b(if)f(set.)630 4318 y(F)-8 b(or)34
b(example,)g(in)f(the)g(default)g(C)f(lo)s(cale,)k(`)p
Ft([a-dx-z])p Fu(')31 b(is)i(equiv)-5 b(alen)m(t)34 b(to)g(`)p
Ft([abcdxyz])p Fu('.)630 4299 y(Man)m(y)68 b(lo)s(cales)h(sort)f(c)m
Ft([abcdxyz])p Fu('.)630 4427 y(Man)m(y)68 b(lo)s(cales)h(sort)f(c)m
(haracters)h(in)e(dictionary)i(order,)76 b(and)67 b(in)g(these)h(lo)s
(cales)630 4409 y(`)p Ft([a-dx-z])p Fu(')36 b(is)i(t)m(ypically)i(not)e
(cales)630 4537 y(`)p Ft([a-dx-z])p Fu(')36 b(is)i(t)m(ypically)i(not)e
(equiv)-5 b(alen)m(t)39 b(to)g(`)p Ft([abcdxyz])p Fu(';)g(it)g(migh)m
(t)f(b)s(e)f(equiv)-5 b(alen)m(t)630 4518 y(to)34 b(`)p
(t)f(b)s(e)f(equiv)-5 b(alen)m(t)630 4647 y(to)34 b(`)p
Ft([aBbCcDdxXyYz])p Fu(',)c(for)j(example.)49 b(T)-8
b(o)33 b(obtain)h(the)f(traditional)h(in)m(terpretation)h(of)630
4628 y(ranges)e(in)f(brac)m(k)m(et)i(expressions,)g(y)m(ou)f(can)g
4756 y(ranges)e(in)f(brac)m(k)m(et)i(expressions,)g(y)m(ou)f(can)g
(force)g(the)g(use)f(of)h(the)g(C)f(lo)s(cale)i(b)m(y)f(setting)630
4738 y(the)c Ft(LC_COLLATE)e Fu(or)i Ft(LC_ALL)f Fu(en)m(vironmen)m(t)i
4866 y(the)c Ft(LC_COLLATE)e Fu(or)i Ft(LC_ALL)f Fu(en)m(vironmen)m(t)i
(v)-5 b(ariable)30 b(to)g(the)f(v)-5 b(alue)30 b(`)p
Ft(C)p Fu(',)g(or)f(enable)h(the)630 4847 y Ft(globasciiranges)c
Fu(shell)31 b(option.)630 4984 y(Within)23 b(`)p Ft([)p
Ft(C)p Fu(',)g(or)f(enable)h(the)630 4975 y Ft(globasciiranges)c
Fu(shell)31 b(option.)630 5103 y(Within)23 b(`)p Ft([)p
Fu(')h(and)e(`)p Ft(])p Fu(',)j Fr(c)m(haracter)g(classes)j
Fu(can)c(b)s(e)e(sp)s(eci\014ed)h(using)f(the)i(syn)m(tax)f
Ft([:)p Fr(class)t Ft(:])p Fu(,)630 5094 y(where)30 b
Ft([:)p Fr(class)t Ft(:])p Fu(,)630 5212 y(where)30 b
Fr(class)35 b Fu(is)30 b(one)h(of)f(the)h(follo)m(wing)h(classes)f
(de\014ned)e(in)h(the)h Fm(posix)f Fu(standard:)870 5230
(de\014ned)e(in)h(the)h Fm(posix)f Fu(standard:)870 5340
y Ft(alnum)142 b(alpha)g(ascii)f(blank)h(cntrl)g(digit)g(graph)g(lower)
870 5340 y(print)g(punct)g(space)f(upper)h(word)190 b(xdigit)p
eop end
p eop end
%%Page: 32 38
TeXDict begin 32 37 bop 150 -116 a Fu(Chapter)30 b(3:)41
b(Basic)32 b(Shell)e(F)-8 b(eatures)2246 b(32)630 299
y(A)42 b(c)m(haracter)h(class)f(matc)m(hes)h(an)m(y)f(c)m(haracter)h(b)
s(elonging)f(to)g(that)g(class.)75 b(The)41 b Ft(word)630
408 y Fu(c)m(haracter)32 b(class)f(matc)m(hes)h(letters,)f(digits,)h
(and)d(the)i(c)m(haracter)h(`)p Ft(_)p Fu('.)630 545
y(Within)25 b(`)p Ft([)p Fu(')f(and)g(`)p Ft(])p Fu(',)i(an)e
Fr(equiv)-5 b(alence)26 b(class)j Fu(can)24 b(b)s(e)g(sp)s(eci\014ed)g
(using)g(the)g(syn)m(tax)h Ft([=)p Fr(c)6 b Ft(=])p Fu(,)630
655 y(whic)m(h)29 b(matc)m(hes)i(all)f(c)m(haracters)h(with)e(the)h
(same)g(collation)h(w)m(eigh)m(t)g(\(as)f(de\014ned)e(b)m(y)i(the)630
765 y(curren)m(t)g(lo)s(cale\))j(as)d(the)h(c)m(haracter)h
Fr(c)p Fu(.)630 901 y(Within)22 b(`)p Ft([)p Fu(')f(and)g(`)p
Ft(])p Fu(',)j(the)d(syn)m(tax)h Ft([.)p Fr(sym)m(b)s(ol)t
Ft(.])e Fu(matc)m(hes)i(the)g(collating)i(sym)m(b)s(ol)d
Fr(sym)m(b)s(ol)p Fu(.)275 1068 y(If)29 b(the)g Ft(extglob)f
Fu(shell)h(option)h(is)g(enabled)f(using)g(the)h Ft(shopt)e
Fu(builtin,)h(sev)m(eral)i(extended)f(pattern)150 1178
y(matc)m(hing)37 b(op)s(erators)e(are)h(recognized.)58
b(Basic)32 b(Shell)e(F)-8 b(eatures)2246 b(32)870 299
y Ft(print)142 b(punct)g(space)f(upper)h(word)190 b(xdigit)630
430 y Fu(A)42 b(c)m(haracter)h(class)f(matc)m(hes)h(an)m(y)f(c)m
(haracter)h(b)s(elonging)f(to)g(that)g(class.)75 b(The)41
b Ft(word)630 539 y Fu(c)m(haracter)32 b(class)f(matc)m(hes)h(letters,)
f(digits,)h(and)d(the)i(c)m(haracter)h(`)p Ft(_)p Fu('.)630
670 y(Within)25 b(`)p Ft([)p Fu(')f(and)g(`)p Ft(])p
Fu(',)i(an)e Fr(equiv)-5 b(alence)26 b(class)j Fu(can)24
b(b)s(e)g(sp)s(eci\014ed)g(using)g(the)g(syn)m(tax)h
Ft([=)p Fr(c)6 b Ft(=])p Fu(,)630 780 y(whic)m(h)29 b(matc)m(hes)i(all)
f(c)m(haracters)h(with)e(the)h(same)g(collation)h(w)m(eigh)m(t)g(\(as)f
(de\014ned)e(b)m(y)i(the)630 890 y(curren)m(t)g(lo)s(cale\))j(as)d(the)
h(c)m(haracter)h Fr(c)p Fu(.)630 1021 y(Within)22 b(`)p
Ft([)p Fu(')f(and)g(`)p Ft(])p Fu(',)j(the)d(syn)m(tax)h
Ft([.)p Fr(sym)m(b)s(ol)t Ft(.])e Fu(matc)m(hes)i(the)g(collating)i
(sym)m(b)s(ol)d Fr(sym)m(b)s(ol)p Fu(.)275 1173 y(If)29
b(the)g Ft(extglob)f Fu(shell)h(option)h(is)g(enabled)f(using)g(the)h
Ft(shopt)e Fu(builtin,)h(sev)m(eral)i(extended)f(pattern)150
1283 y(matc)m(hing)37 b(op)s(erators)e(are)h(recognized.)58
b(In)35 b(the)g(follo)m(wing)i(description,)g(a)f Fr(pattern-list)j
Fu(is)d(a)g(list)g(of)150 1287 y(one)d(or)f(more)h(patterns)f
Fu(is)d(a)g(list)g(of)150 1392 y(one)d(or)f(more)h(patterns)f
(separated)h(b)m(y)f(a)h(`)p Ft(|)p Fu('.)47 b(Comp)s(osite)33
b(patterns)f(ma)m(y)i(b)s(e)d(formed)h(using)g(one)h(or)150
1397 y(more)e(of)f(the)h(follo)m(wing)g(sub-patterns:)150
1564 y Ft(?\()p Fj(pattern-list)p Ft(\))630 1673 y Fu(Matc)m(hes)h
1502 y(more)e(of)f(the)h(follo)m(wing)g(sub-patterns:)150
1654 y Ft(?\()p Fj(pattern-list)p Ft(\))630 1764 y Fu(Matc)m(hes)h
(zero)f(or)g(one)f(o)s(ccurrence)h(of)f(the)h(giv)m(en)g(patterns.)150
1837 y Ft(*\()p Fj(pattern-list)p Ft(\))630 1947 y Fu(Matc)m(hes)h
1916 y Ft(*\()p Fj(pattern-list)p Ft(\))630 2026 y Fu(Matc)m(hes)h
(zero)f(or)g(more)f(o)s(ccurrences)h(of)f(the)h(giv)m(en)g(patterns.)
150 2111 y Ft(+\()p Fj(pattern-list)p Ft(\))630 2221
150 2178 y Ft(+\()p Fj(pattern-list)p Ft(\))630 2288
y Fu(Matc)m(hes)h(one)f(or)f(more)h(o)s(ccurrences)f(of)h(the)f(giv)m
(en)i(patterns.)150 2385 y Ft(@\()p Fj(pattern-list)p
Ft(\))630 2495 y Fu(Matc)m(hes)g(one)f(of)f(the)h(giv)m(en)g(patterns.)
150 2659 y Ft(!\()p Fj(pattern-list)p Ft(\))630 2769
(en)i(patterns.)150 2440 y Ft(@\()p Fj(pattern-list)p
Ft(\))630 2550 y Fu(Matc)m(hes)g(one)f(of)f(the)h(giv)m(en)g(patterns.)
150 2702 y Ft(!\()p Fj(pattern-list)p Ft(\))630 2811
y Fu(Matc)m(hes)h(an)m(ything)f(except)g(one)g(of)f(the)h(giv)m(en)g
(patterns.)150 2973 y Fk(3.5.9)63 b(Quote)41 b(Remo)m(v)-7
b(al)150 3120 y Fu(After)32 b(the)g(preceding)g(expansions,)h(all)f
(patterns.)150 3004 y Fk(3.5.9)63 b(Quote)41 b(Remo)m(v)-7
b(al)150 3151 y Fu(After)32 b(the)g(preceding)g(expansions,)h(all)f
(unquoted)f(o)s(ccurrences)h(of)g(the)h(c)m(haracters)g(`)p
Ft(\\)p Fu(',)g(`)p Ft(')p Fu(',)f(and)g(`)p Ft(")p Fu(')150
3229 y(that)f(did)f(not)g(result)g(from)g(one)h(of)g(the)f(ab)s(o)m(v)m
(e)i(expansions)e(are)h(remo)m(v)m(ed.)150 3477 y Fs(3.6)68
b(Redirections)150 3637 y Fu(Before)32 b(a)f(command)f(is)h(executed,)h
3260 y(that)f(did)f(not)g(result)g(from)g(one)h(of)g(the)f(ab)s(o)m(v)m
(e)i(expansions)e(are)h(remo)m(v)m(ed.)150 3494 y Fs(3.6)68
b(Redirections)150 3653 y Fu(Before)32 b(a)f(command)f(is)h(executed,)h
(its)f(input)e(and)h(output)h(ma)m(y)g(b)s(e)f Fr(redirected)k
Fu(using)c(a)i(sp)s(ecial)f(no-)150 3746 y(tation)d(in)m(terpreted)f(b)
Fu(using)c(a)i(sp)s(ecial)f(no-)150 3763 y(tation)d(in)m(terpreted)f(b)
m(y)f(the)h(shell.)40 b(Redirection)27 b(allo)m(ws)h(commands')f
(\014le)f(handles)g(to)i(b)s(e)e(duplicated,)150 3856
(\014le)f(handles)g(to)i(b)s(e)e(duplicated,)150 3873
y(op)s(ened,)i(closed,)i(made)e(to)h(refer)f(to)h(di\013eren)m(t)f
(\014les,)h(and)f(can)g(c)m(hange)h(the)g(\014les)f(the)g(command)g
(reads)150 3965 y(from)39 b(and)g(writes)h(to.)69 b(Redirection)40
(reads)150 3982 y(from)39 b(and)g(writes)h(to.)69 b(Redirection)40
b(ma)m(y)g(also)h(b)s(e)e(used)g(to)h(mo)s(dify)f(\014le)g(handles)g
(in)g(the)h(curren)m(t)150 4075 y(shell)e(execution)h(en)m(vironmen)m
(in)g(the)h(curren)m(t)150 4092 y(shell)e(execution)h(en)m(vironmen)m
(t.)65 b(The)37 b(follo)m(wing)j(redirection)f(op)s(erators)f(ma)m(y)g
(precede)h(or)f(app)s(ear)150 4185 y(an)m(ywhere)30 b(within)f(a)h
(precede)h(or)f(app)s(ear)150 4201 y(an)m(ywhere)30 b(within)f(a)h
(simple)f(command)h(or)f(ma)m(y)i(follo)m(w)g(a)f(command.)40
b(Redirections)30 b(are)g(pro)s(cessed)150 4294 y(in)g(the)h(order)f
b(Redirections)30 b(are)g(pro)s(cessed)150 4311 y(in)g(the)h(order)f
(they)g(app)s(ear,)g(from)g(left)h(to)g(righ)m(t.)275
4434 y(Eac)m(h)45 b(redirection)h(that)f(ma)m(y)h(b)s(e)e(preceded)g(b)
4442 y(Eac)m(h)45 b(redirection)h(that)f(ma)m(y)h(b)s(e)e(preceded)g(b)
m(y)h(a)h(\014le)f(descriptor)f(n)m(um)m(b)s(er)g(ma)m(y)h(instead)h(b)
s(e)150 4543 y(preceded)41 b(b)m(y)g(a)h(w)m(ord)f(of)g(the)h(form)f
s(e)150 4551 y(preceded)41 b(b)m(y)g(a)h(w)m(ord)f(of)g(the)h(form)f
Fi({)p Fr(v)-5 b(arname)5 b Fi(})p Fu(.)74 b(In)41 b(this)g(case,)k
(for)c(eac)m(h)i(redirection)f(op)s(erator)150 4653 y(except)30
(for)c(eac)m(h)i(redirection)f(op)s(erator)150 4661 y(except)30
b Ft(>)p Fu(&-)f(and)f Ft(<)p Fu(&-,)h(the)g(shell)g(will)h(allo)s
(cate)h(a)e(\014le)h(descriptor)e(greater)j(than)d(10)i(and)e(assign)i
(it)f(to)150 4762 y Fi({)p Fr(v)-5 b(arname)5 b Fi(})p
(it)f(to)150 4771 y Fi({)p Fr(v)-5 b(arname)5 b Fi(})p
Fu(.)45 b(If)31 b Ft(>)p Fu(&-)g(or)h Ft(<)p Fu(&-)f(is)h(preceded)f(b)
m(y)g Fi({)p Fr(v)-5 b(arname)5 b Fi(})p Fu(,)33 b(the)f(v)-5
b(alue)32 b(of)g Fr(v)-5 b(arname)36 b Fu(de\014nes)31
b(the)h(\014le)150 4872 y(descriptor)e(to)h(close.)275
b(the)h(\014le)150 4880 y(descriptor)e(to)h(close.)275
5011 y(In)c(the)i(follo)m(wing)h(descriptions,)g(if)e(the)h(\014le)g
(descriptor)f(n)m(um)m(b)s(er)g(is)g(omitted,)i(and)f(the)f(\014rst)g
(c)m(har-)150 5121 y(acter)42 b(of)f(the)g(redirection)g(op)s(erator)g