> >if I pipe the output of a cd command the working directory doesn't
> change.
> 
> That's because all elements of a pipeline except the last are run in
> different processes to the main shell that starts the pipeline. As such,
> the cd command is running in a subshell which exits when cd exits. This
> has no effect on your main shell, which will keep the original working
> directory.

Is there any way to change this behaviour?

Stefan


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to