[PLUG] 'cd ~' at the end of bash scripts

Robert Citek robert.citek at gmail.com
Wed Jan 30 22:48:44 UTC 2008


On Jan 30, 2008 4:32 PM, Rich Shepard <rshepard at appl-ecosys.com> wrote:
> On Wed, 30 Jan 2008, Eric Wilhelm wrote:
>
> > I can't see why they should.
>
> Because I explicitly put 'cd ' as the last line in each script. Should
> have mentioned that more explicitly.

If you run the script, it doesn't matter.  It only matters when you
source the script, and you really shouldn't be sourcing scripts.

Regards,
- Robert



More information about the PLUG mailing list