bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Switching Directories Internally


From: Paul Jarc
Subject: Re: Switching Directories Internally
Date: Tue, 27 Nov 2001 17:52:19 -0500
User-agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/20.7 (i386-redhat-linux-gnu)

SoloCDM <deedsmis@aculink.net> wrote:
> When switching a directory within a script, is it possible to change
> the default directory where the script was executed to arrive at
> another directory when the script ends, without using the period or
> source before the executing script at the command-line?

No.  Without "." or "source", the script runs as a separate process.
That process has no way of changing the original shell process's
current directory.


paul



reply via email to

[Prev in Thread] Current Thread [Next in Thread]