Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Nov 2004 03:07:02 -0800
From:      cape canaveral <somniosus@gmail.com>
To:        Nikolas Britton <freebsd@nbritton.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Job Control
Message-ID:  <f2f44cff041122030715498c50@mail.gmail.com>
In-Reply-To: <41A1C433.90406@nbritton.org>
References:  <41A1C433.90406@nbritton.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 22 Nov 2004 04:49:23 -0600, Nikolas Britton
<freebsd@nbritton.org> wrote:
> Lets say I put a job in the background and then exit the shell (csh) and
> then open another shell, how do I get that background possess back into
> the foreground in the new shell?
> 

The program you're looking for is called 'screen'.


> Also:
> 
> %ll
> drwxr-xr-x   2 nbritton  nbritton  -  512 Nov 22 04:40 test/
> -rw-r--r--       1 nbritton  nbritton  -      0 Nov 22 04:40 test.tgz
> %cd t*
> t*: Ambiguous.
> %cd test.tgz
> test.tgz: Not a directory.
> %
> 
> So whens is it possible to cd into a file or is cd really that stupid?
> 
Depends on your shell, or version of cd I suppose.  

bash-3.00$ ls -la | grep test
drwxr-xr-x  2 aaron  wheel   512 Nov 22 05:15 test
-rw-r--r--  1 aaron  wheel    22 Nov 22 05:22 test1
bash-3.00$ cd t*
bash-3.00$ pwd
/usr/home/aaron/test

But if I try and run the same command in csh I get:

$ cd t*
cd: too many arguments


-Aaron



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f2f44cff041122030715498c50>