delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/11/26/01:06:41

From: cabrera AT wrc DOT xerox DOT com (Jose I. Cabrera)
Subject: bash scripts and cd's....
26 Nov 1998 01:06:41 -0800 :
Message-ID: <365C55B5.733F7445.cygnus.gnu-win32@wrc.xerox.com>
References: <199809071110 DOT HAA03366 AT web06 DOT iname DOT net>
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com

I have NT4SP3 running Cygnus v20.

I have a script:

--- begin script ---
#! /bin/sh

cd k:
cd NormalDirectory
cd "Directory with a spaces in between"

exit 0
--- end script ---

This executes ok.  But, when I do a ls, the files echo'ed are the
files from HOME.  why?  If I do this manually, I could get to
"Directory with a spaces in between".  Any idea why?

What I would like to happen is when I run this script, I would
like bash to point to the contents of
"Directory with a spaces in between".  Any help is already
appreciated.

thanks,

jose
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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