The "Current Job" Isn't Always What You Expect (Unix Power Tools, 3rd Edition)
23.5. The "Current Job" Isn't Always What You Expect
% is
the current stopped or background job, but not always the last one.
If you've stopped any jobs, the current job is the
most recently stopped job. Otherwise, it's the most
recent background job. For example, try stopping your editor (like
vi), then putting another job in the background:
% vi afile
CTRL-z
Stopped
% sleep 1000 &
[2] 12345
% fg
and notice that the fg brings your editor to the
foreground.
-- JP
23.4. Some Gotchas with Job Control23.6. Job Control and autowrite: Real Timesavers!
Copyright © 2003 O'Reilly & Associates. All rights reserved.
Wyszukiwarka
Podobne podstrony:
ch23 (18)ch23ch23ch23Ch23 pg753 774RM ch23CH23 (5)ch23ch23 (3)CH23 (14)ch23 (6)ch23ch23 (11)ch23 (9)więcej podobnych podstron