delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/07/15/20:53:37

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <378E8172.42692CCB@dgs.monash.edu.au>
Date: Fri, 16 Jul 1999 10:48:50 +1000
From: Brendan Simon <brendan AT dgs DOT monash DOT edu DOT au>
Reply-To: brendan AT dgs DOT monash DOT edu DOT au
Organization: CTAM Pty Ltd
X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.0.36 i586)
X-Accept-Language: en
MIME-Version: 1.0
To: Hans GINZEL <hgin2088 AT mail DOT kolej DOT mff DOT cuni DOT cz>
CC: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: bash: pushd
References: <Pine DOT BSF DOT 4 DOT 05 DOT 9907160230050 DOT 15929-100000 AT mail DOT kolej DOT mff DOT cuni DOT cz>

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 AT sourceware DOT cygnus DOT com


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019