From: John Gaughan (elric at domain csn.ul.ie)
Date: Wed 05 May 1999 - 12:14:51 IST
On Wed, 05 May 1999, Raymond Kelly wrote:
> fg #2 will bring back pine
> fg #1 would do the same for tin etc etc
> This may well be very shell dependant but I'm not sure (I'm a tcsh user
> & it's Dave Airlie's fault)
Yup, bash and zsh (at least as I have them set-up) treat everything after
the '#' character as a comment, so the number of the job you want to bring
to the foreground doesn't get passed to fg. You should use the '%'
character instead, and this will work with all three shelss mentioned here.
So, changing Ray's example here, 'fg %2' would bring back pine, and 'fg %1'
would do bring tin to the foreground.
-- John Gaughan http://www.csn.ul.ie/~elric Skynet FTP Administrator http://skynet.csn.ul.ie
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:04:10 GMT