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 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 CC: cygwin AT sourceware DOT cygnus DOT com Subject: Re: bash: pushd References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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