mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-11 22:20:49 +02:00
commit bash-20090305 snapshot
This commit is contained in:
+190
-188
@@ -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 2009.02.23:1156
|
||||
%DVIPSSource: TeX output 2009.03.05:0754
|
||||
%%BeginProcSet: tex.pro 0 0
|
||||
%!
|
||||
/TeXDict 300 dict def TeXDict begin/N{def}def/B{bind def}N/S{exch}N/X{S
|
||||
@@ -4537,26 +4537,25 @@ 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.0,)g(for)f
|
||||
Fs(Bash)g Ft(V)-8 b(ersion)31 b(4.0.)3180 1697 y(F)-8
|
||||
b(ebruary)30 b(2009)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
|
||||
Fs(Bash)g Ft(V)-8 b(ersion)31 b(4.0.)3285 1697 y(Marc)m(h)g(2009)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.0,)c(13)f(F)-8
|
||||
b(ebruary)30 b(2009\).)150 3133 y(This)g(is)h(Edition)g(4.0,)h(last)g
|
||||
(up)s(dated)e(13)h(F)-8 b(ebruary)31 b(2009,)i(of)e Fq(The)g(GNU)g
|
||||
(Bash)g(Reference)h(Man)m(ual)p Ft(,)150 3243 y(for)e
|
||||
Fs(Bash)p Ft(,)g(V)-8 b(ersion)31 b(4.0.)150 3377 y(Cop)m(yrigh)m(t)602
|
||||
3374 y(c)577 3377 y Fp(\015)f Ft(1988{2009)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
|
||||
(the)h(Bash)f(shell)h(\(v)m(ersion)150 2999 y(4.0,)c(4)e(Marc)m(h)i
|
||||
(2009\).)150 3133 y(This)h(is)g(Edition)h(4.0,)i(last)e(up)s(dated)e(4)
|
||||
i(Marc)m(h)g(2009,)j(of)c Fq(The)h(GNU)g(Bash)f(Reference)i(Man)m(ual)p
|
||||
Ft(,)g(for)150 3243 y Fs(Bash)p Ft(,)29 b(V)-8 b(ersion)31
|
||||
b(4.0.)150 3377 y(Cop)m(yrigh)m(t)602 3374 y(c)577 3377
|
||||
y Fp(\015)f Ft(1988{2009)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
|
||||
@@ -11084,273 +11083,276 @@ b(Con)l(trol)275 550 y Ft(This)34 b(c)m(hapter)i(discusses)f(what)g
|
||||
(cesses)150 1290 y(and)24 b(con)m(tin)m(ue)i(\(resume\))f(their)g
|
||||
(execution)h(at)f(a)h(later)f(p)s(oin)m(t.)39 b(A)25
|
||||
b(user)f(t)m(ypically)j(emplo)m(ys)e(this)g(facilit)m(y)150
|
||||
1400 y(via)31 b(an)f(in)m(teractiv)m(e)j(in)m(terface)f(supplied)e
|
||||
(join)m(tly)h(b)m(y)f(the)h(system's)f(terminal)h(driv)m(er)f(and)g
|
||||
(Bash.)275 1540 y(The)23 b(shell)i(asso)s(ciates)h(a)f
|
||||
Fq(job)h Ft(with)e(eac)m(h)i(pip)s(eline.)38 b(It)25
|
||||
b(k)m(eeps)f(a)h(table)h(of)e(curren)m(tly)h(executing)g(jobs,)150
|
||||
1650 y(whic)m(h)33 b(ma)m(y)i(b)s(e)e(listed)h(with)f(the)h
|
||||
1400 y(via)i(an)e(in)m(teractiv)m(e)k(in)m(terface)f(supplied)d(join)m
|
||||
(tly)h(b)m(y)g(the)h(op)s(erating)f(system)g(k)m(ernel's)h(terminal)f
|
||||
(driv)m(er)150 1510 y(and)k(Bash.)275 1650 y(The)23 b(shell)i(asso)s
|
||||
(ciates)h(a)f Fq(job)h Ft(with)e(eac)m(h)i(pip)s(eline.)38
|
||||
b(It)25 b(k)m(eeps)f(a)h(table)h(of)e(curren)m(tly)h(executing)g(jobs,)
|
||||
150 1759 y(whic)m(h)33 b(ma)m(y)i(b)s(e)e(listed)h(with)f(the)h
|
||||
Fs(jobs)f Ft(command.)50 b(When)33 b(Bash)h(starts)g(a)g(job)g(async)m
|
||||
(hronously)-8 b(,)34 b(it)150 1759 y(prin)m(ts)c(a)h(line)f(that)h(lo)s
|
||||
(oks)g(lik)m(e:)390 1899 y Fs([1])47 b(25647)150 2040
|
||||
(hronously)-8 b(,)34 b(it)150 1869 y(prin)m(ts)c(a)h(line)f(that)h(lo)s
|
||||
(oks)g(lik)m(e:)390 2009 y Fs([1])47 b(25647)150 2149
|
||||
y Ft(indicating)34 b(that)g(this)f(job)g(is)g(job)g(n)m(um)m(b)s(er)f
|
||||
(1)i(and)f(that)g(the)h(pro)s(cess)f Fl(id)g Ft(of)g(the)h(last)g(pro)s
|
||||
(cess)f(in)g(the)150 2149 y(pip)s(eline)42 b(asso)s(ciated)i(with)e
|
||||
(cess)f(in)g(the)150 2259 y(pip)s(eline)42 b(asso)s(ciated)i(with)e
|
||||
(this)g(job)g(is)h(25647.)78 b(All)43 b(of)g(the)g(pro)s(cesses)f(in)g
|
||||
(a)h(single)g(pip)s(eline)f(are)150 2259 y(mem)m(b)s(ers)30
|
||||
(a)h(single)g(pip)s(eline)f(are)150 2368 y(mem)m(b)s(ers)30
|
||||
b(of)g(the)h(same)f(job.)41 b(Bash)30 b(uses)g(the)h
|
||||
Fq(job)h Ft(abstraction)f(as)g(the)g(basis)f(for)g(job)g(con)m(trol.)
|
||||
275 2399 y(T)-8 b(o)23 b(facilitate)j(the)d(implemen)m(tation)i(of)f
|
||||
275 2509 y(T)-8 b(o)23 b(facilitate)j(the)d(implemen)m(tation)i(of)f
|
||||
(the)f(user)f(in)m(terface)j(to)f(job)f(con)m(trol,)j(the)d(op)s
|
||||
(erating)h(system)150 2509 y(main)m(tains)j(the)f(notion)h(of)f(a)g
|
||||
(erating)h(system)150 2618 y(main)m(tains)j(the)f(notion)h(of)f(a)g
|
||||
(curren)m(t)g(terminal)g(pro)s(cess)g(group)g Fl(id)p
|
||||
Ft(.)39 b(Mem)m(b)s(ers)26 b(of)g(this)g(pro)s(cess)f(group)150
|
||||
2618 y(\(pro)s(cesses)h(whose)g(pro)s(cess)g(group)g
|
||||
2728 y(\(pro)s(cesses)h(whose)g(pro)s(cess)g(group)g
|
||||
Fl(id)g Ft(is)h(equal)g(to)g(the)f(curren)m(t)g(terminal)h(pro)s(cess)f
|
||||
(group)f Fl(id)p Ft(\))i(receiv)m(e)150 2728 y(k)m(eyb)s
|
||||
(group)f Fl(id)p Ft(\))i(receiv)m(e)150 2837 y(k)m(eyb)s
|
||||
(oard-generated)22 b(signals)g(suc)m(h)e(as)h Fs(SIGINT)p
|
||||
Ft(.)36 b(These)21 b(pro)s(cesses)g(are)g(said)g(to)g(b)s(e)g(in)f(the)
|
||||
h(foreground.)150 2837 y(Bac)m(kground)38 b(pro)s(cesses)f(are)h(those)
|
||||
h(foreground.)150 2947 y(Bac)m(kground)38 b(pro)s(cesses)f(are)h(those)
|
||||
g(whose)f(pro)s(cess)g(group)g Fl(id)h Ft(di\013ers)f(from)g(the)g
|
||||
(terminal's;)42 b(suc)m(h)150 2947 y(pro)s(cesses)24
|
||||
(terminal's;)42 b(suc)m(h)150 3057 y(pro)s(cesses)24
|
||||
b(are)g(imm)m(une)g(to)g(k)m(eyb)s(oard-generated)h(signals.)40
|
||||
b(Only)23 b(foreground)g(pro)s(cesses)h(are)g(allo)m(w)m(ed)150
|
||||
3057 y(to)35 b(read)f(from)f(or)h(write)g(to)h(the)f(terminal.)52
|
||||
b(Bac)m(kground)34 b(pro)s(cesses)g(whic)m(h)g(attempt)h(to)g(read)e
|
||||
(from)150 3166 y(\(write)e(to\))g(the)g(terminal)g(are)g(sen)m(t)g(a)f
|
||||
Fs(SIGTTIN)f Ft(\()p Fs(SIGTTOU)p Ft(\))g(signal)i(b)m(y)f(the)h
|
||||
(terminal)g(driv)m(er,)f(whic)m(h,)150 3276 y(unless)g(caugh)m(t,)h
|
||||
(susp)s(ends)d(the)j(pro)s(cess.)275 3416 y(If)j(the)i(op)s(erating)g
|
||||
(system)f(on)h(whic)m(h)f(Bash)g(is)h(running)d(supp)s(orts)h(job)h
|
||||
(con)m(trol,)j(Bash)e(con)m(tains)150 3525 y(facilities)30
|
||||
b(to)f(use)f(it.)40 b(T)m(yping)28 b(the)g Fq(susp)s(end)h
|
||||
Ft(c)m(haracter)h(\(t)m(ypically)g(`)p Fs(^Z)p Ft(',)f(Con)m(trol-Z\))g
|
||||
(while)f(a)g(pro)s(cess)150 3635 y(is)42 b(running)f(causes)i(that)g
|
||||
(pro)s(cess)f(to)h(b)s(e)f(stopp)s(ed)f(and)h(returns)f(con)m(trol)j
|
||||
(to)f(Bash.)77 b(T)m(yping)42 b(the)150 3745 y Fq(dela)m(y)m(ed)k(susp)
|
||||
s(end)f Ft(c)m(haracter)h(\(t)m(ypically)g(`)p Fs(^Y)p
|
||||
Ft(',)i(Con)m(trol-Y\))e(causes)e(the)h(pro)s(cess)e(to)i(b)s(e)f
|
||||
(stopp)s(ed)150 3854 y(when)26 b(it)i(attempts)h(to)f(read)f(input)g
|
||||
(from)f(the)i(terminal,)h(and)e(con)m(trol)h(to)g(b)s(e)f(returned)f
|
||||
(to)j(Bash.)39 b(The)150 3964 y(user)e(then)g(manipulates)h(the)g
|
||||
(state)h(of)f(this)f(job,)j(using)d(the)h Fs(bg)f Ft(command)g(to)h
|
||||
(con)m(tin)m(ue)h(it)f(in)g(the)150 4073 y(bac)m(kground,)g(the)f
|
||||
Fs(fg)g Ft(command)f(to)i(con)m(tin)m(ue)g(it)f(in)f(the)h(foreground,)
|
||||
h(or)f(the)g Fs(kill)f Ft(command)g(to)150 4183 y(kill)27
|
||||
b(it.)40 b(A)27 b(`)p Fs(^Z)p Ft(')g(tak)m(es)h(e\013ect)g(immediately)
|
||||
-8 b(,)29 b(and)d(has)h(the)f(additional)i(side)e(e\013ect)j(of)d
|
||||
(causing)h(p)s(ending)150 4293 y(output)j(and)g(t)m(yp)s(eahead)h(to)g
|
||||
(b)s(e)e(discarded.)275 4433 y(There)j(are)g(a)h(n)m(um)m(b)s(er)e(of)i
|
||||
(w)m(a)m(ys)g(to)h(refer)e(to)h(a)g(job)f(in)g(the)h(shell.)47
|
||||
3166 y(to)g(read)e(from)h(or,)h(if)f(the)g(user)f(so)i(sp)s(eci\014es)e
|
||||
(with)h Fs(stty)29 b(tostop)p Ft(,)23 b(write)g(to)g(the)h(terminal.)38
|
||||
b(Bac)m(kground)150 3276 y(pro)s(cesses)27 b(whic)m(h)g(attempt)h(to)f
|
||||
(read)g(from)g(\(write)g(to)h(when)e Fs(stty)j(tostop)d
|
||||
Ft(is)h(in)f(e\013ect\))j(the)e(terminal)150 3385 y(are)32
|
||||
b(sen)m(t)g(a)g Fs(SIGTTIN)e Ft(\()p Fs(SIGTTOU)p Ft(\))g(signal)i(b)m
|
||||
(y)g(the)g(k)m(ernel's)g(terminal)g(driv)m(er,)g(whic)m(h,)g(unless)f
|
||||
(caugh)m(t,)150 3495 y(susp)s(ends)d(the)i(pro)s(cess.)275
|
||||
3635 y(If)k(the)i(op)s(erating)g(system)f(on)h(whic)m(h)f(Bash)g(is)h
|
||||
(running)d(supp)s(orts)h(job)h(con)m(trol,)j(Bash)e(con)m(tains)150
|
||||
3745 y(facilities)30 b(to)f(use)f(it.)40 b(T)m(yping)28
|
||||
b(the)g Fq(susp)s(end)h Ft(c)m(haracter)h(\(t)m(ypically)g(`)p
|
||||
Fs(^Z)p Ft(',)f(Con)m(trol-Z\))g(while)f(a)g(pro)s(cess)150
|
||||
3854 y(is)42 b(running)f(causes)i(that)g(pro)s(cess)f(to)h(b)s(e)f
|
||||
(stopp)s(ed)f(and)h(returns)f(con)m(trol)j(to)f(Bash.)77
|
||||
b(T)m(yping)42 b(the)150 3964 y Fq(dela)m(y)m(ed)k(susp)s(end)f
|
||||
Ft(c)m(haracter)h(\(t)m(ypically)g(`)p Fs(^Y)p Ft(',)i(Con)m(trol-Y\))e
|
||||
(causes)e(the)h(pro)s(cess)e(to)i(b)s(e)f(stopp)s(ed)150
|
||||
4073 y(when)26 b(it)i(attempts)h(to)f(read)f(input)g(from)f(the)i
|
||||
(terminal,)h(and)e(con)m(trol)h(to)g(b)s(e)f(returned)f(to)j(Bash.)39
|
||||
b(The)150 4183 y(user)e(then)g(manipulates)h(the)g(state)h(of)f(this)f
|
||||
(job,)j(using)d(the)h Fs(bg)f Ft(command)g(to)h(con)m(tin)m(ue)h(it)f
|
||||
(in)g(the)150 4293 y(bac)m(kground,)g(the)f Fs(fg)g Ft(command)f(to)i
|
||||
(con)m(tin)m(ue)g(it)f(in)f(the)h(foreground,)h(or)f(the)g
|
||||
Fs(kill)f Ft(command)g(to)150 4402 y(kill)27 b(it.)40
|
||||
b(A)27 b(`)p Fs(^Z)p Ft(')g(tak)m(es)h(e\013ect)g(immediately)-8
|
||||
b(,)29 b(and)d(has)h(the)f(additional)i(side)e(e\013ect)j(of)d(causing)
|
||||
h(p)s(ending)150 4512 y(output)j(and)g(t)m(yp)s(eahead)h(to)g(b)s(e)e
|
||||
(discarded.)275 4652 y(There)j(are)g(a)h(n)m(um)m(b)s(er)e(of)i(w)m(a)m
|
||||
(ys)g(to)h(refer)e(to)h(a)g(job)f(in)g(the)h(shell.)47
|
||||
b(The)32 b(c)m(haracter)i(`)p Fs(\045)p Ft(')f(in)m(tro)s(duces)150
|
||||
4542 y(a)e(job)f(sp)s(eci\014cation)h(\()p Fq(jobsp)s(ec)6
|
||||
b Ft(\).)275 4682 y(Job)31 b(n)m(um)m(b)s(er)f Fs(n)h
|
||||
4761 y(a)e(job)f(sp)s(eci\014cation)h(\()p Fq(jobsp)s(ec)6
|
||||
b Ft(\).)275 4902 y(Job)31 b(n)m(um)m(b)s(er)f Fs(n)h
|
||||
Ft(ma)m(y)h(b)s(e)f(referred)g(to)h(as)g(`)p Fs(\045n)p
|
||||
Ft('.)44 b(The)31 b(sym)m(b)s(ols)g(`)p Fs(\045\045)p
|
||||
Ft(')h(and)f(`)p Fs(\045+)p Ft(')g(refer)h(to)g(the)g(shell's)150
|
||||
4792 y(notion)k(of)f(the)g(curren)m(t)g(job,)h(whic)m(h)f(is)g(the)g
|
||||
5011 y(notion)k(of)f(the)g(curren)m(t)g(job,)h(whic)m(h)f(is)g(the)g
|
||||
(last)h(job)f(stopp)s(ed)f(while)h(it)h(w)m(as)g(in)e(the)i(foreground)
|
||||
e(or)150 4902 y(started)27 b(in)g(the)g(bac)m(kground.)40
|
||||
e(or)150 5121 y(started)27 b(in)g(the)g(bac)m(kground.)40
|
||||
b(A)27 b(single)g(`)p Fs(\045)p Ft(')g(\(with)g(no)g(accompan)m(ying)i
|
||||
(job)d(sp)s(eci\014cation\))i(also)g(refers)150 5011
|
||||
(job)d(sp)s(eci\014cation\))i(also)g(refers)150 5230
|
||||
y(to)k(the)e(curren)m(t)h(job.)42 b(The)30 b(previous)g(job)h(ma)m(y)g
|
||||
(b)s(e)f(referenced)h(using)f(`)p Fs(\045-)p Ft('.)42
|
||||
b(If)30 b(there)h(is)g(only)g(a)g(single)150 5121 y(job,)g(`)p
|
||||
b(If)30 b(there)h(is)g(only)g(a)g(single)150 5340 y(job,)g(`)p
|
||||
Fs(\045+)p Ft(')g(and)f(`)p Fs(\045-)p Ft(')h(can)h(b)s(oth)e(b)s(e)g
|
||||
(used)h(to)g(refer)g(to)h(that)g(job.)42 b(In)30 b(output)h(p)s
|
||||
(ertaining)g(to)g(jobs)g(\(e.g.,)150 5230 y(the)39 b(output)f(of)g(the)
|
||||
h Fs(jobs)e Ft(command\),)k(the)d(curren)m(t)h(job)f(is)g(alw)m(a)m(ys)
|
||||
i(\015agged)f(with)f(a)h(`)p Fs(+)p Ft(',)i(and)d(the)150
|
||||
5340 y(previous)30 b(job)g(with)g(a)h(`)p Fs(-)p Ft('.)p
|
||||
eop end
|
||||
(ertaining)g(to)g(jobs)g(\(e.g.,)p eop end
|
||||
%%Page: 90 96
|
||||
TeXDict begin 90 95 bop 150 -116 a Ft(90)2572 b(Bash)31
|
||||
b(Reference)g(Man)m(ual)275 299 y(A)38 b(job)g(ma)m(y)h(also)g(b)s(e)f
|
||||
(referred)f(to)j(using)d(a)i(pre\014x)e(of)i(the)f(name)h(used)e(to)i
|
||||
(start)g(it,)i(or)e(using)f(a)150 408 y(substring)29
|
||||
b(that)i(app)s(ears)f(in)g(its)h(command)f(line.)41 b(F)-8
|
||||
b(or)31 b(example,)g(`)p Fs(\045ce)p Ft(')f(refers)g(to)h(a)g(stopp)s
|
||||
(ed)e Fs(ce)h Ft(job.)150 518 y(Using)d(`)p Fs(\045?ce)p
|
||||
Ft(',)g(on)f(the)h(other)g(hand,)g(refers)f(to)h(an)m(y)g(job)g(con)m
|
||||
(taining)h(the)f(string)f(`)p Fs(ce)p Ft(')h(in)f(its)h(command)150
|
||||
628 y(line.)41 b(If)30 b(the)h(pre\014x)e(or)h(substring)f(matc)m(hes)j
|
||||
(more)e(than)h(one)f(job,)h(Bash)f(rep)s(orts)g(an)g(error.)275
|
||||
767 y(Simply)g(naming)h(a)g(job)g(can)g(b)s(e)f(used)h(to)g(bring)f(it)
|
||||
i(in)m(to)g(the)f(foreground:)41 b(`)p Fs(\0451)p Ft(')31
|
||||
b(is)g(a)h(synon)m(ym)e(for)150 876 y(`)p Fs(fg)g(\0451)p
|
||||
b(Reference)g(Man)m(ual)150 299 y(the)39 b(output)f(of)g(the)h
|
||||
Fs(jobs)e Ft(command\),)k(the)d(curren)m(t)h(job)f(is)g(alw)m(a)m(ys)i
|
||||
(\015agged)f(with)f(a)h(`)p Fs(+)p Ft(',)i(and)d(the)150
|
||||
408 y(previous)30 b(job)g(with)g(a)h(`)p Fs(-)p Ft('.)275
|
||||
550 y(A)38 b(job)g(ma)m(y)h(also)g(b)s(e)f(referred)f(to)j(using)d(a)i
|
||||
(pre\014x)e(of)i(the)f(name)h(used)e(to)i(start)g(it,)i(or)e(using)f(a)
|
||||
150 659 y(substring)29 b(that)i(app)s(ears)f(in)g(its)h(command)f
|
||||
(line.)41 b(F)-8 b(or)31 b(example,)g(`)p Fs(\045ce)p
|
||||
Ft(')f(refers)g(to)h(a)g(stopp)s(ed)e Fs(ce)h Ft(job.)150
|
||||
769 y(Using)d(`)p Fs(\045?ce)p Ft(',)g(on)f(the)h(other)g(hand,)g
|
||||
(refers)f(to)h(an)m(y)g(job)g(con)m(taining)h(the)f(string)f(`)p
|
||||
Fs(ce)p Ft(')h(in)f(its)h(command)150 878 y(line.)41
|
||||
b(If)30 b(the)h(pre\014x)e(or)h(substring)f(matc)m(hes)j(more)e(than)h
|
||||
(one)f(job,)h(Bash)f(rep)s(orts)g(an)g(error.)275 1020
|
||||
y(Simply)g(naming)h(a)g(job)g(can)g(b)s(e)f(used)h(to)g(bring)f(it)i
|
||||
(in)m(to)g(the)f(foreground:)41 b(`)p Fs(\0451)p Ft(')31
|
||||
b(is)g(a)h(synon)m(ym)e(for)150 1129 y(`)p Fs(fg)g(\0451)p
|
||||
Ft(',)i(bringing)f(job)g(1)g(from)g(the)h(bac)m(kground)f(in)m(to)i
|
||||
(the)e(foreground.)44 b(Similarly)-8 b(,)32 b(`)p Fs(\0451)e(&)p
|
||||
Ft(')i(resumes)150 986 y(job)e(1)h(in)f(the)g(bac)m(kground,)h(equiv)-5
|
||||
b(alen)m(t)32 b(to)f(`)p Fs(bg)f(\0451)p Ft(')275 1125
|
||||
y(The)g(shell)i(learns)f(immediately)i(whenev)m(er)e(a)h(job)f(c)m
|
||||
Ft(')i(resumes)150 1239 y(job)e(1)h(in)f(the)g(bac)m(kground,)h(equiv)
|
||||
-5 b(alen)m(t)32 b(to)f(`)p Fs(bg)f(\0451)p Ft(')275
|
||||
1380 y(The)g(shell)i(learns)f(immediately)i(whenev)m(er)e(a)h(job)f(c)m
|
||||
(hanges)h(state.)45 b(Normally)-8 b(,)33 b(Bash)e(w)m(aits)i(un)m(til)
|
||||
150 1235 y(it)25 b(is)g(ab)s(out)f(to)i(prin)m(t)e(a)h(prompt)f(b)s
|
||||
150 1489 y(it)25 b(is)g(ab)s(out)f(to)i(prin)m(t)e(a)h(prompt)f(b)s
|
||||
(efore)g(rep)s(orting)h(c)m(hanges)g(in)g(a)g(job's)f(status)h(so)g(as)
|
||||
g(to)g(not)g(in)m(terrupt)150 1344 y(an)m(y)g(other)g(output.)39
|
||||
g(to)g(not)g(in)m(terrupt)150 1599 y(an)m(y)g(other)g(output.)39
|
||||
b(If)24 b(the)i(`)p Fs(-b)p Ft(')e(option)i(to)f(the)g
|
||||
Fs(set)f Ft(builtin)h(is)g(enabled,)h(Bash)f(rep)s(orts)f(suc)m(h)h(c)m
|
||||
(hanges)150 1454 y(immediately)g(\(see)g(Section)g(4.3.1)g([The)f(Set)g
|
||||
(hanges)150 1709 y(immediately)g(\(see)g(Section)g(4.3.1)g([The)f(Set)g
|
||||
(Builtin],)i(page)f(51\).)40 b(An)m(y)24 b(trap)f(on)h
|
||||
Fs(SIGCHLD)e Ft(is)i(executed)150 1564 y(for)30 b(eac)m(h)i(c)m(hild)e
|
||||
(pro)s(cess)g(that)h(exits.)275 1703 y(If)25 b(an)h(attempt)h(to)g
|
||||
Fs(SIGCHLD)e Ft(is)i(executed)150 1818 y(for)30 b(eac)m(h)i(c)m(hild)e
|
||||
(pro)s(cess)g(that)h(exits.)275 1959 y(If)25 b(an)h(attempt)h(to)g
|
||||
(exit)g(Bash)f(is)h(made)f(while)g(jobs)f(are)i(stopp)s(ed,)f(\(or)h
|
||||
(running,)e(if)h(the)g Fs(checkjobs)150 1812 y Ft(option)e(is)f
|
||||
(running,)e(if)h(the)g Fs(checkjobs)150 2069 y Ft(option)e(is)f
|
||||
(enabled)h({)g(see)g(Section)g(4.3.2)h([The)e(Shopt)g(Builtin],)j(page)
|
||||
e(55\),)i(the)e(shell)f(prin)m(ts)g(a)h(w)m(arning)150
|
||||
1922 y(message,)k(and)c(if)i(the)f Fs(checkjobs)e Ft(option)j(is)f
|
||||
2178 y(message,)k(and)c(if)i(the)f Fs(checkjobs)e Ft(option)j(is)f
|
||||
(enabled,)i(lists)e(the)h(jobs)f(and)f(their)i(statuses.)39
|
||||
b(The)25 b Fs(jobs)150 2032 y Ft(command)36 b(ma)m(y)h(then)f(b)s(e)f
|
||||
b(The)25 b Fs(jobs)150 2288 y Ft(command)36 b(ma)m(y)h(then)f(b)s(e)f
|
||||
(used)g(to)i(insp)s(ect)f(their)g(status.)59 b(If)36
|
||||
b(a)g(second)g(attempt)i(to)f(exit)g(is)f(made)150 2141
|
||||
b(a)g(second)g(attempt)i(to)f(exit)g(is)f(made)150 2398
|
||||
y(without)e(an)f(in)m(terv)m(ening)i(command,)f(Bash)g(do)s(es)f(not)h
|
||||
(prin)m(t)g(another)f(w)m(arning,)i(and)e(an)m(y)h(stopp)s(ed)150
|
||||
2251 y(jobs)c(are)h(terminated.)150 2520 y Fr(7.2)68
|
||||
b(Job)45 b(Con)l(trol)h(Builtins)150 2766 y Fs(bg)870
|
||||
2903 y(bg)h([)p Fj(jobspec)56 b Fs(...)o(])630 3040 y
|
||||
2507 y(jobs)c(are)h(terminated.)150 2781 y Fr(7.2)68
|
||||
b(Job)45 b(Con)l(trol)h(Builtins)150 3029 y Fs(bg)870
|
||||
3166 y(bg)h([)p Fj(jobspec)56 b Fs(...)o(])630 3304 y
|
||||
Ft(Resume)24 b(eac)m(h)h(susp)s(ended)d(job)i Fq(jobsp)s(ec)29
|
||||
b Ft(in)24 b(the)g(bac)m(kground,)h(as)g(if)f(it)h(had)e(b)s(een)g
|
||||
(started)630 3150 y(with)32 b(`)p Fs(&)p Ft('.)45 b(If)31
|
||||
(started)630 3414 y(with)32 b(`)p Fs(&)p Ft('.)45 b(If)31
|
||||
b Fq(jobsp)s(ec)37 b Ft(is)32 b(not)g(supplied,)f(the)h(curren)m(t)g
|
||||
(job)f(is)h(used.)45 b(The)31 b(return)g(status)630 3259
|
||||
(job)f(is)h(used.)45 b(The)31 b(return)g(status)630 3523
|
||||
y(is)i(zero)g(unless)f(it)h(is)g(run)e(when)h(job)g(con)m(trol)i(is)f
|
||||
(not)g(enabled,)h(or,)f(when)f(run)f(with)h(job)630 3369
|
||||
(not)g(enabled,)h(or,)f(when)f(run)f(with)h(job)630 3633
|
||||
y(con)m(trol)h(enabled,)g(an)m(y)f Fq(jobsp)s(ec)37 b
|
||||
Ft(w)m(as)32 b(not)g(found)f(or)g(sp)s(eci\014es)h(a)g(job)g(that)g(w)m
|
||||
(as)g(started)630 3478 y(without)e(job)g(con)m(trol.)150
|
||||
3643 y Fs(fg)870 3779 y(fg)47 b([)p Fj(jobspec)11 b Fs(])630
|
||||
3916 y Ft(Resume)43 b(the)g(job)g Fq(jobsp)s(ec)48 b
|
||||
(as)g(started)630 3743 y(without)e(job)g(con)m(trol.)150
|
||||
3909 y Fs(fg)870 4046 y(fg)47 b([)p Fj(jobspec)11 b Fs(])630
|
||||
4184 y Ft(Resume)43 b(the)g(job)g Fq(jobsp)s(ec)48 b
|
||||
Ft(in)43 b(the)g(foreground)g(and)f(mak)m(e)j(it)e(the)h(curren)m(t)f
|
||||
(job.)78 b(If)630 4026 y Fq(jobsp)s(ec)41 b Ft(is)c(not)f(supplied,)h
|
||||
(job.)78 b(If)630 4294 y Fq(jobsp)s(ec)41 b Ft(is)c(not)f(supplied,)h
|
||||
(the)f(curren)m(t)h(job)f(is)g(used.)58 b(The)36 b(return)f(status)h
|
||||
(is)h(that)g(of)630 4136 y(the)d(command)g(placed)h(in)m(to)g(the)f
|
||||
(is)h(that)g(of)630 4403 y(the)d(command)g(placed)h(in)m(to)g(the)f
|
||||
(foreground,)g(or)g(non-zero)h(if)f(run)f(when)g(job)g(con)m(trol)630
|
||||
4245 y(is)i(disabled)g(or,)i(when)d(run)g(with)h(job)g(con)m(trol)h
|
||||
4513 y(is)i(disabled)g(or,)i(when)d(run)g(with)h(job)g(con)m(trol)h
|
||||
(enabled,)h Fq(jobsp)s(ec)j Ft(do)s(es)35 b(not)h(sp)s(ecify)f(a)630
|
||||
4355 y(v)-5 b(alid)31 b(job)f(or)g Fq(jobsp)s(ec)35 b
|
||||
4623 y(v)-5 b(alid)31 b(job)f(or)g Fq(jobsp)s(ec)35 b
|
||||
Ft(sp)s(eci\014es)30 b(a)h(job)f(that)h(w)m(as)g(started)g(without)f
|
||||
(job)g(con)m(trol.)150 4519 y Fs(jobs)870 4656 y(jobs)47
|
||||
b([-lnprs])e([)p Fj(jobspec)11 b Fs(])870 4765 y(jobs)47
|
||||
(job)g(con)m(trol.)150 4789 y Fs(jobs)870 4927 y(jobs)47
|
||||
b([-lnprs])e([)p Fj(jobspec)11 b Fs(])870 5036 y(jobs)47
|
||||
b(-x)g Fj(command)56 b Fs([)p Fj(arguments)11 b Fs(])630
|
||||
4902 y Ft(The)30 b(\014rst)f(form)h(lists)h(the)g(activ)m(e)h(jobs.)41
|
||||
5174 y Ft(The)30 b(\014rst)f(form)h(lists)h(the)g(activ)m(e)h(jobs.)41
|
||||
b(The)30 b(options)g(ha)m(v)m(e)i(the)e(follo)m(wing)i(meanings:)630
|
||||
5066 y Fs(-l)384 b Ft(List)31 b(pro)s(cess)f Fl(id)p
|
||||
Ft(s)g(in)g(addition)h(to)g(the)f(normal)h(information.)630
|
||||
5230 y Fs(-n)384 b Ft(Displa)m(y)26 b(information)f(only)h(ab)s(out)e
|
||||
(jobs)h(that)g(ha)m(v)m(e)i(c)m(hanged)e(status)h(since)1110
|
||||
5340 y(the)31 b(user)e(w)m(as)i(last)g(noti\014ed)f(of)h(their)f
|
||||
(status.)p eop end
|
||||
5340 y Fs(-l)384 b Ft(List)31 b(pro)s(cess)f Fl(id)p
|
||||
Ft(s)g(in)g(addition)h(to)g(the)f(normal)h(information.)p
|
||||
eop end
|
||||
%%Page: 91 97
|
||||
TeXDict begin 91 96 bop 150 -116 a Ft(Chapter)30 b(7:)41
|
||||
b(Job)30 b(Con)m(trol)2571 b(91)630 299 y Fs(-p)384 b
|
||||
Ft(List)31 b(only)f(the)h(pro)s(cess)f Fl(id)g Ft(of)h(the)f(job's)g
|
||||
(pro)s(cess)g(group)g(leader.)630 447 y Fs(-r)384 b Ft(Restrict)31
|
||||
b(output)f(to)i(running)c(jobs.)630 594 y Fs(-s)384 b
|
||||
Ft(Restrict)31 b(output)f(to)i(stopp)s(ed)d(jobs.)630
|
||||
742 y(If)23 b Fq(jobsp)s(ec)28 b Ft(is)c(giv)m(en,)i(output)d(is)h
|
||||
b(Job)30 b(Con)m(trol)2571 b(91)630 299 y Fs(-n)384 b
|
||||
Ft(Displa)m(y)26 b(information)f(only)h(ab)s(out)e(jobs)h(that)g(ha)m
|
||||
(v)m(e)i(c)m(hanged)e(status)h(since)1110 408 y(the)31
|
||||
b(user)e(w)m(as)i(last)g(noti\014ed)f(of)h(their)f(status.)630
|
||||
575 y Fs(-p)384 b Ft(List)31 b(only)f(the)h(pro)s(cess)f
|
||||
Fl(id)g Ft(of)h(the)f(job's)g(pro)s(cess)g(group)g(leader.)630
|
||||
742 y Fs(-r)384 b Ft(Restrict)31 b(output)f(to)i(running)c(jobs.)630
|
||||
909 y Fs(-s)384 b Ft(Restrict)31 b(output)f(to)i(stopp)s(ed)d(jobs.)630
|
||||
1076 y(If)23 b Fq(jobsp)s(ec)28 b Ft(is)c(giv)m(en,)i(output)d(is)h
|
||||
(restricted)g(to)g(information)g(ab)s(out)f(that)h(job.)39
|
||||
b(If)23 b Fq(jobsp)s(ec)630 852 y Ft(is)30 b(not)h(supplied,)e(the)i
|
||||
(status)g(of)f(all)h(jobs)f(is)h(listed.)630 980 y(If)g(the)g(`)p
|
||||
b(If)23 b Fq(jobsp)s(ec)630 1185 y Ft(is)30 b(not)h(supplied,)e(the)i
|
||||
(status)g(of)f(all)h(jobs)f(is)h(listed.)630 1323 y(If)g(the)g(`)p
|
||||
Fs(-x)p Ft(')g(option)h(is)f(supplied,)g Fs(jobs)f Ft(replaces)i(an)m
|
||||
(y)f Fq(jobsp)s(ec)37 b Ft(found)29 b(in)i Fq(command)k
|
||||
Ft(or)630 1090 y Fq(argumen)m(ts)41 b Ft(with)c(the)h(corresp)s(onding)
|
||||
Ft(or)630 1433 y Fq(argumen)m(ts)41 b Ft(with)c(the)h(corresp)s(onding)
|
||||
e(pro)s(cess)h(group)f Fl(id)p Ft(,)k(and)c(executes)j
|
||||
Fq(command)p Ft(,)630 1199 y(passing)30 b(it)h Fq(argumen)m(t)r
|
||||
Ft(s,)g(returning)f(its)g(exit)i(status.)150 1347 y Fs(kill)870
|
||||
1476 y(kill)47 b([-s)g Fj(sigspec)11 b Fs(])45 b([-n)i
|
||||
Fq(command)p Ft(,)630 1542 y(passing)30 b(it)h Fq(argumen)m(t)r
|
||||
Ft(s,)g(returning)f(its)g(exit)i(status.)150 1709 y Fs(kill)870
|
||||
1847 y(kill)47 b([-s)g Fj(sigspec)11 b Fs(])45 b([-n)i
|
||||
Fj(signum)11 b Fs(])45 b([-)p Fj(sigspec)11 b Fs(])44
|
||||
b Fj(jobspec)57 b Fs(or)47 b Fj(pid)870 1585 y Fs(kill)g(-l)g([)p
|
||||
Fj(exit_status)11 b Fs(])630 1714 y Ft(Send)22 b(a)i(signal)g(sp)s
|
||||
b Fj(jobspec)57 b Fs(or)47 b Fj(pid)870 1957 y Fs(kill)g(-l)g([)p
|
||||
Fj(exit_status)11 b Fs(])630 2095 y Ft(Send)22 b(a)i(signal)g(sp)s
|
||||
(eci\014ed)f(b)m(y)g Fq(sigsp)s(ec)29 b Ft(or)24 b Fq(sign)m(um)f
|
||||
Ft(to)h(the)g(pro)s(cess)f(named)g(b)m(y)g(job)g(sp)s(eci\014-)630
|
||||
1824 y(cation)k Fq(jobsp)s(ec)j Ft(or)25 b(pro)s(cess)g
|
||||
2205 y(cation)k Fq(jobsp)s(ec)j Ft(or)25 b(pro)s(cess)g
|
||||
Fl(id)h Fq(pid)p Ft(.)38 b Fq(sigsp)s(ec)31 b Ft(is)25
|
||||
b(either)h(a)g(case-insensitiv)m(e)i(signal)e(name)630
|
||||
1933 y(suc)m(h)k(as)h Fs(SIGINT)d Ft(\(with)j(or)f(without)h(the)f
|
||||
2314 y(suc)m(h)k(as)h Fs(SIGINT)d Ft(\(with)j(or)f(without)h(the)f
|
||||
Fs(SIG)g Ft(pre\014x\))f(or)i(a)f(signal)h(n)m(um)m(b)s(er;)f
|
||||
Fq(sign)m(um)g Ft(is)630 2043 y(a)i(signal)g(n)m(um)m(b)s(er.)43
|
||||
Fq(sign)m(um)g Ft(is)630 2424 y(a)i(signal)g(n)m(um)m(b)s(er.)43
|
||||
b(If)31 b Fq(sigsp)s(ec)37 b Ft(and)31 b Fq(sign)m(um)g
|
||||
Ft(are)h(not)f(presen)m(t,)h Fs(SIGTERM)e Ft(is)h(used.)43
|
||||
b(The)630 2152 y(`)p Fs(-l)p Ft(')34 b(option)g(lists)h(the)f(signal)h
|
||||
b(The)630 2534 y(`)p Fs(-l)p Ft(')34 b(option)g(lists)h(the)f(signal)h
|
||||
(names.)51 b(If)33 b(an)m(y)i(argumen)m(ts)f(are)g(supplied)f(when)g(`)
|
||||
p Fs(-l)p Ft(')h(is)630 2262 y(giv)m(en,)e(the)g(names)e(of)i(the)f
|
||||
p Fs(-l)p Ft(')h(is)630 2643 y(giv)m(en,)e(the)g(names)e(of)i(the)f
|
||||
(signals)g(corresp)s(onding)f(to)i(the)f(argumen)m(ts)g(are)h(listed,)g
|
||||
(and)630 2372 y(the)c(return)f(status)h(is)g(zero.)41
|
||||
b Fq(exit)p 1796 2372 28 4 v 41 w(status)32 b Ft(is)c(a)g(n)m(um)m(b)s
|
||||
(and)630 2753 y(the)c(return)f(status)h(is)g(zero.)41
|
||||
b Fq(exit)p 1796 2753 28 4 v 41 w(status)32 b Ft(is)c(a)g(n)m(um)m(b)s
|
||||
(er)f(sp)s(ecifying)g(a)i(signal)f(n)m(um)m(b)s(er)f(or)630
|
||||
2481 y(the)35 b(exit)h(status)f(of)g(a)g(pro)s(cess)g(terminated)g(b)m
|
||||
2862 y(the)35 b(exit)h(status)f(of)g(a)g(pro)s(cess)g(terminated)g(b)m
|
||||
(y)g(a)g(signal.)55 b(The)34 b(return)g(status)h(is)g(zero)630
|
||||
2591 y(if)c(at)h(least)g(one)g(signal)f(w)m(as)h(successfully)f(sen)m
|
||||
2972 y(if)c(at)h(least)g(one)g(signal)f(w)m(as)h(successfully)f(sen)m
|
||||
(t,)h(or)f(non-zero)h(if)f(an)g(error)f(o)s(ccurs)h(or)g(an)630
|
||||
2700 y(in)m(v)-5 b(alid)31 b(option)g(is)f(encoun)m(tered.)150
|
||||
2848 y Fs(wait)870 2977 y(wait)47 b([)p Fj(jobspec)56
|
||||
b Fs(or)47 b Fj(pid)57 b Fs(...])630 3105 y Ft(W)-8 b(ait)28
|
||||
3081 y(in)m(v)-5 b(alid)31 b(option)g(is)f(encoun)m(tered.)150
|
||||
3248 y Fs(wait)870 3386 y(wait)47 b([)p Fj(jobspec)56
|
||||
b Fs(or)47 b Fj(pid)57 b Fs(...])630 3525 y Ft(W)-8 b(ait)28
|
||||
b(un)m(til)f(the)f(c)m(hild)h(pro)s(cess)f(sp)s(eci\014ed)g(b)m(y)g
|
||||
(eac)m(h)h(pro)s(cess)f Fl(id)h Fq(pid)i Ft(or)d(job)g(sp)s
|
||||
(eci\014cation)630 3215 y Fq(jobsp)s(ec)40 b Ft(exits)35
|
||||
(eci\014cation)630 3634 y Fq(jobsp)s(ec)40 b Ft(exits)35
|
||||
b(and)f(return)g(the)g(exit)i(status)f(of)g(the)g(last)g(command)f(w)m
|
||||
(aited)i(for.)53 b(If)35 b(a)630 3324 y(job)g(sp)s(ec)f(is)h(giv)m(en,)
|
||||
(aited)i(for.)53 b(If)35 b(a)630 3744 y(job)g(sp)s(ec)f(is)h(giv)m(en,)
|
||||
i(all)f(pro)s(cesses)f(in)f(the)h(job)g(are)g(w)m(aited)h(for.)54
|
||||
b(If)35 b(no)f(argumen)m(ts)i(are)630 3434 y(giv)m(en,)d(all)f(curren)m
|
||||
b(If)35 b(no)f(argumen)m(ts)i(are)630 3853 y(giv)m(en,)d(all)f(curren)m
|
||||
(tly)f(activ)m(e)i(c)m(hild)f(pro)s(cesses)f(are)g(w)m(aited)h(for,)g
|
||||
(and)e(the)i(return)e(status)630 3544 y(is)h(zero.)44
|
||||
(and)e(the)i(return)e(status)630 3963 y(is)h(zero.)44
|
||||
b(If)30 b(neither)h Fq(jobsp)s(ec)36 b Ft(nor)31 b Fq(pid)i
|
||||
Ft(sp)s(eci\014es)e(an)g(activ)m(e)i(c)m(hild)f(pro)s(cess)e(of)h(the)g
|
||||
(shell,)630 3653 y(the)g(return)e(status)i(is)f(127.)150
|
||||
3801 y Fs(disown)870 3930 y(disown)46 b([-ar])g([-h])h([)p
|
||||
Fj(jobspec)56 b Fs(...)o(])630 4058 y Ft(Without)32 b(options,)g(eac)m
|
||||
(shell,)630 4073 y(the)g(return)e(status)i(is)f(127.)150
|
||||
4239 y Fs(disown)870 4377 y(disown)46 b([-ar])g([-h])h([)p
|
||||
Fj(jobspec)56 b Fs(...)o(])630 4516 y Ft(Without)32 b(options,)g(eac)m
|
||||
(h)h Fq(jobsp)s(ec)j Ft(is)c(remo)m(v)m(ed)g(from)f(the)h(table)g(of)g
|
||||
(activ)m(e)h(jobs.)44 b(If)31 b(the)630 4168 y(`)p Fs(-h)p
|
||||
(activ)m(e)h(jobs.)44 b(If)31 b(the)630 4625 y(`)p Fs(-h)p
|
||||
Ft(')36 b(option)h(is)g(giv)m(en,)i(the)e(job)f(is)h(not)f(remo)m(v)m
|
||||
(ed)i(from)e(the)h(table,)i(but)d(is)g(mark)m(ed)h(so)630
|
||||
4277 y(that)d Fs(SIGHUP)d Ft(is)j(not)f(sen)m(t)h(to)g(the)f(job)g(if)g
|
||||
4735 y(that)d Fs(SIGHUP)d Ft(is)j(not)f(sen)m(t)h(to)g(the)f(job)g(if)g
|
||||
(the)h(shell)f(receiv)m(es)i(a)f Fs(SIGHUP)p Ft(.)47
|
||||
b(If)33 b Fq(jobsp)s(ec)38 b Ft(is)630 4387 y(not)32
|
||||
b(If)33 b Fq(jobsp)s(ec)38 b Ft(is)630 4844 y(not)32
|
||||
b(presen)m(t,)f(and)g(neither)h(the)f(`)p Fs(-a)p Ft(')g(nor)g(`)p
|
||||
Fs(-r)p Ft(')g(option)h(is)g(supplied,)e(the)i(curren)m(t)f(job)g(is)
|
||||
630 4497 y(used.)58 b(If)36 b(no)g Fq(jobsp)s(ec)41 b
|
||||
630 4954 y(used.)58 b(If)36 b(no)g Fq(jobsp)s(ec)41 b
|
||||
Ft(is)36 b(supplied,)h(the)g(`)p Fs(-a)p Ft(')f(option)h(means)f(to)h
|
||||
(remo)m(v)m(e)h(or)e(mark)g(all)630 4606 y(jobs;)28 b(the)f(`)p
|
||||
(remo)m(v)m(e)h(or)e(mark)g(all)630 5064 y(jobs;)28 b(the)f(`)p
|
||||
Fs(-r)p Ft(')g(option)g(without)g(a)g Fq(jobsp)s(ec)32
|
||||
b Ft(argumen)m(t)27 b(restricts)h(op)s(eration)f(to)h(running)630
|
||||
4716 y(jobs.)150 4863 y Fs(suspend)870 4992 y(suspend)46
|
||||
b([-f])630 5121 y Ft(Susp)s(end)31 b(the)i(execution)h(of)g(this)f
|
||||
(shell)g(un)m(til)h(it)g(receiv)m(es)h(a)e Fs(SIGCONT)f
|
||||
Ft(signal.)50 b(A)33 b(login)630 5230 y(shell)24 b(cannot)h(b)s(e)e
|
||||
(susp)s(ended;)h(the)g(`)p Fs(-f)p Ft(')g(option)g(can)h(b)s(e)e(used)g
|
||||
(to)i(o)m(v)m(erride)g(this)f(and)f(force)630 5340 y(the)31
|
||||
b(susp)s(ension.)p eop end
|
||||
5173 y(jobs.)150 5340 y Fs(suspend)p eop end
|
||||
%%Page: 92 98
|
||||
TeXDict begin 92 97 bop 150 -116 a Ft(92)2572 b(Bash)31
|
||||
b(Reference)g(Man)m(ual)275 299 y(When)f(job)f(con)m(trol)j(is)e(not)h
|
||||
(activ)m(e,)i(the)d Fs(kill)f Ft(and)h Fs(wait)f Ft(builtins)g(do)h
|
||||
(not)h(accept)h Fq(jobsp)s(ec)j Ft(argu-)150 408 y(men)m(ts.)41
|
||||
b(They)30 b(m)m(ust)g(b)s(e)g(supplied)f(pro)s(cess)h
|
||||
Fl(id)p Ft(s.)150 666 y Fr(7.3)68 b(Job)45 b(Con)l(trol)h(V)-11
|
||||
b(ariables)150 910 y Fs(auto_resume)630 1020 y Ft(This)31
|
||||
b(v)-5 b(ariable)32 b(con)m(trols)g(ho)m(w)g(the)f(shell)h(in)m
|
||||
(teracts)h(with)e(the)h(user)e(and)h(job)g(con)m(trol.)45
|
||||
b(If)630 1129 y(this)28 b(v)-5 b(ariable)30 b(exists)f(then)f(single)h
|
||||
(w)m(ord)f(simple)h(commands)f(without)g(redirections)i(are)630
|
||||
1239 y(treated)h(as)g(candidates)f(for)g(resumption)g(of)g(an)g
|
||||
(existing)h(job.)41 b(There)29 b(is)h(no)h(am)m(biguit)m(y)630
|
||||
1348 y(allo)m(w)m(ed;)f(if)d(there)g(is)g(more)g(than)f(one)h(job)g(b)s
|
||||
(eginning)f(with)g(the)h(string)g(t)m(yp)s(ed,)g(then)g(the)630
|
||||
1458 y(most)j(recen)m(tly)h(accessed)f(job)f(will)h(b)s(e)f(selected.)
|
||||
42 b(The)29 b(name)g(of)h(a)g(stopp)s(ed)e(job,)i(in)f(this)630
|
||||
1567 y(con)m(text,)h(is)e(the)g(command)g(line)g(used)f(to)h(start)g
|
||||
(it.)41 b(If)27 b(this)h(v)-5 b(ariable)28 b(is)g(set)g(to)h(the)e(v)-5
|
||||
b(alue)630 1677 y(`)p Fs(exact)p Ft(',)33 b(the)g(string)g(supplied)f
|
||||
b(Reference)g(Man)m(ual)870 299 y Fs(suspend)46 b([-f])630
|
||||
433 y Ft(Susp)s(end)31 b(the)i(execution)h(of)g(this)f(shell)g(un)m
|
||||
(til)h(it)g(receiv)m(es)h(a)e Fs(SIGCONT)f Ft(signal.)50
|
||||
b(A)33 b(login)630 543 y(shell)24 b(cannot)h(b)s(e)e(susp)s(ended;)h
|
||||
(the)g(`)p Fs(-f)p Ft(')g(option)g(can)h(b)s(e)e(used)g(to)i(o)m(v)m
|
||||
(erride)g(this)f(and)f(force)630 653 y(the)31 b(susp)s(ension.)275
|
||||
812 y(When)f(job)f(con)m(trol)j(is)e(not)h(activ)m(e,)i(the)d
|
||||
Fs(kill)f Ft(and)h Fs(wait)f Ft(builtins)g(do)h(not)h(accept)h
|
||||
Fq(jobsp)s(ec)j Ft(argu-)150 922 y(men)m(ts.)41 b(They)30
|
||||
b(m)m(ust)g(b)s(e)g(supplied)f(pro)s(cess)h Fl(id)p Ft(s.)150
|
||||
1179 y Fr(7.3)68 b(Job)45 b(Con)l(trol)h(V)-11 b(ariables)150
|
||||
1423 y Fs(auto_resume)630 1533 y Ft(This)31 b(v)-5 b(ariable)32
|
||||
b(con)m(trols)g(ho)m(w)g(the)f(shell)h(in)m(teracts)h(with)e(the)h
|
||||
(user)e(and)h(job)g(con)m(trol.)45 b(If)630 1642 y(this)28
|
||||
b(v)-5 b(ariable)30 b(exists)f(then)f(single)h(w)m(ord)f(simple)h
|
||||
(commands)f(without)g(redirections)i(are)630 1752 y(treated)h(as)g
|
||||
(candidates)f(for)g(resumption)g(of)g(an)g(existing)h(job.)41
|
||||
b(There)29 b(is)h(no)h(am)m(biguit)m(y)630 1861 y(allo)m(w)m(ed;)f(if)d
|
||||
(there)g(is)g(more)g(than)f(one)h(job)g(b)s(eginning)f(with)g(the)h
|
||||
(string)g(t)m(yp)s(ed,)g(then)g(the)630 1971 y(most)j(recen)m(tly)h
|
||||
(accessed)f(job)f(will)h(b)s(e)f(selected.)42 b(The)29
|
||||
b(name)g(of)h(a)g(stopp)s(ed)e(job,)i(in)f(this)630 2081
|
||||
y(con)m(text,)h(is)e(the)g(command)g(line)g(used)f(to)h(start)g(it.)41
|
||||
b(If)27 b(this)h(v)-5 b(ariable)28 b(is)g(set)g(to)h(the)e(v)-5
|
||||
b(alue)630 2190 y(`)p Fs(exact)p Ft(',)33 b(the)g(string)g(supplied)f
|
||||
(m)m(ust)h(matc)m(h)g(the)h(name)f(of)g(a)g(stopp)s(ed)f(job)h
|
||||
(exactly;)j(if)630 1787 y(set)29 b(to)h(`)p Fs(substring)p
|
||||
(exactly;)j(if)630 2300 y(set)29 b(to)h(`)p Fs(substring)p
|
||||
Ft(',)d(the)i(string)g(supplied)e(needs)i(to)g(matc)m(h)h(a)f
|
||||
(substring)f(of)h(the)g(name)630 1896 y(of)38 b(a)f(stopp)s(ed)g(job.)
|
||||
(substring)f(of)h(the)g(name)630 2409 y(of)38 b(a)f(stopp)s(ed)g(job.)
|
||||
62 b(The)37 b(`)p Fs(substring)p Ft(')e(v)-5 b(alue)38
|
||||
b(pro)m(vides)f(functionalit)m(y)i(analogous)g(to)630
|
||||
2006 y(the)f(`)p Fs(\045?)p Ft(')f(job)h Fl(id)f Ft(\(see)i(Section)f
|
||||
2519 y(the)f(`)p Fs(\045?)p Ft(')f(job)h Fl(id)f Ft(\(see)i(Section)f
|
||||
(7.1)h([Job)f(Con)m(trol)g(Basics],)j(page)d(89\).)64
|
||||
b(If)37 b(set)h(to)h(an)m(y)630 2115 y(other)32 b(v)-5
|
||||
b(If)37 b(set)h(to)h(an)m(y)630 2628 y(other)32 b(v)-5
|
||||
b(alue,)32 b(the)g(supplied)e(string)i(m)m(ust)f(b)s(e)g(a)h(pre\014x)f
|
||||
(of)h(a)g(stopp)s(ed)e(job's)i(name;)g(this)630 2225
|
||||
(of)h(a)g(stopp)s(ed)e(job's)i(name;)g(this)630 2738
|
||||
y(pro)m(vides)e(functionalit)m(y)i(analogous)g(to)f(the)g(`)p
|
||||
Fs(\045)p Ft(')f(job)g Fl(id)p Ft(.)p eop end
|
||||
%%Page: 93 99
|
||||
|
||||
Reference in New Issue
Block a user