D&C Lug - Home Page
Devon & Cornwall Linux Users' Group

[ Date Index ][ Thread Index ]
[ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] remember current directory, change, cahnge back



On Thu, 12 Dec 2002, Adrian Midgley wrote:

I want a shell script to leave the shell in the current directory after it 
finishes, but in between I want it to cd to a directory, execute this and 
that there, then cd back.

Yet another option: do it in a subshell:
 ( cd otherdir && othercommand )

-- 
Nick Kew


--
The Mailing List for the Devon & Cornwall LUG
Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the
message body to unsubscribe.


Lynx friendly