[1] Running netscape &
[2] Running xcalc &
[3]- Stopped lynx
[4]+ Stopped lynx http://aliensaliensaliens.com
I can put the xcalc program in the foreground with
fg %?xc, because xc
doesn't appear in the other jobs. But I
can't refer to either of the lynx
processes with any substring of
"lynx." If I do, I get something
like the following.
[jjohn@marian jjohn]$ fg %?ly
bash: fg: ambigious job spec: ly
Instead, I could refer to the second version with fg
%?aliens. In order to get at the first
lynx job, its job number must be used explicitly.
You may find that your shell attempts to interpret
%? as a filename wildcard. This is increasingly
rare, but you may need to escape the ?, so that
you can foreground a process. That can be done like this: fg
%\?string.