www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/05/21/07:57:07

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: <19990521115437.20009.rocketmail@send205.yahoomail.com>
Date: Fri, 21 May 1999 04:54:37 -0700 (PDT)
From: Earnie Boyd <earnie_boyd AT yahoo DOT com>
Reply-To: earnie_boyd AT yahoo DOT com
Subject: Re: Strangeness executing script with space in filename
To: Dirk Fieldhouse <fieldhouse AT logica DOT com>, cygwin AT sourceware DOT cygnus DOT com
MIME-Version: 1.0

--- Dirk Fieldhouse <fieldhouse AT logica DOT com> wrote:
> B20.1, NT4W/SP3
> 
> Suppose I have files such as the following:
> 
> /tmp/foo.exe
> /tmp/fum
> /tmp/New Folder/foo.exe
> /tmp/New Folder/fum
> 
> where fum is a shell script. In bash 2.02, suppose w,x,y,z are variables set
> to each of these filenames.
> 
> Then
> 
> bash> "$w"	# executes foo.exe
> 
> bash> "$x"	# executes fum script
> 
> bash> "$y"	# executes foo.exe
> 
> bash> "$z"	# loses: /test/New: not found
> 
> (and incidentally z="/test/New\ Folder/fum" is no better) 
> 
> I'm not sure whether this is a bash/ash issue or more profound, eg cygwin
> exec().
> Any ideas?

Uh, one place it's /tmp/New Folder/fum and the other place it's /test/New\ 
Folder/fum.  Besides that, the FAQ or perhaps the README at the cygwin/latest
directory states that you'll have problems with _spaces_ within a path.  Yes
quoting should be used with the space.
===
"Earnie Boyd" <mailto:earnie_boyd AT yahoo DOT com>
CYGWIN RELATED HELP:
 DOCUMENTATION: <http://sourceware.cygnus.com/cygwin/docs.html>
       DLLHELP: <http://www.xraylith.wisc.edu/~khan/software/gnu-win32/>
ARCHIVE SEARCH: <http://www.delorie.com/archives/> OR
                <http://www.eGroups.com/list/gnu-win32/>
_____________________________________________________________
Do You Yahoo!?
Free instant messaging and more at http://messenger.yahoo.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