This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: bash: pushd
- To: Hans GINZEL <hgin2088@mail.kolej.mff.cuni.cz>
- Subject: Re: bash: pushd
- From: Brendan Simon <brendan@dgs.monash.edu.au>
- Date: Fri, 16 Jul 1999 10:48:50 +1000
- CC: cygwin@sourceware.cygnus.com
- Organization: CTAM Pty Ltd
- References: <Pine.BSF.4.05.9907160230050.15929-100000@mail.kolej.mff.cuni.cz>
- Reply-To: brendan@dgs.monash.edu.au
It seems that pushd is not in the path when you run your script.
Try putting "echo $PATH" in your script to see what the path is set to
when the script is exectued.
Brendan Simon.
Hans GINZEL wrote:
> Hello!
>
> Why is not possible to use pushd in bash scripts?
>
> Try this session:
>
> $ mkdir temp
> $ echo "pushd temp" >a
> $ ./a
> pushd: not found
> $ pushd temp
> /temp /
> $ rmdir temp
> $ rm a
>
> Hans
>
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe@sourceware.cygnus.com
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
- References:
- bash: pushd
- From: Hans GINZEL <hgin2088@mail.kolej.mff.cuni.cz>