delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/07/09/11:09:20

Date: Thu, 9 Jul 1998 11:02:47 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Myknees AT aol DOT com
cc: djgpp AT delorie DOT com
Subject: Re: Can I try BASH?
In-Reply-To: <a3e10b8e.35a3fba2@aol.com>
Message-ID: <Pine.SUN.3.91.980709110221.13185C-100000@is>
MIME-Version: 1.0

On Wed, 8 Jul 1998 Myknees AT aol DOT com wrote:

> >  AFAIK, the latest port of Bash does support DOS batch files.  I think the 
> >  README.dos file in the distribution says that.
> 
> But for changing the current directory?  Do you mean that bash
> itself executes the commands, like this:
> @echo off
> cd c:\over\there
> dir
> 
> ...landing you in "c:\over\there" and never invoking command.com?

No, it does invoke command.com.

> I have
> version 1147 and doing that seems to show the contents of c:\over\there
> without changing the current working directory.  

It does change there, but Bash restores the previous directory when
the batch file exits, since that is how things work on Unix.  If you
want to stay in that directory, make an alias from this batch file.

- Raw text -


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