This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Windows/Cygwin directory name stuff



You're not directly interacting with 'Unix', you're interacting with
a shell program, which has it's own set of rules for interpreting
the commands you enter.  Commands such as 'cd' don't process
the command line, they are invoked by the shell (thought in some
cases, commands may be 'built-in' code included in the shell for
performance reasons, but still the shell processes the command
line before the args are passed to the command).

Try:  cd 'Installer programs'

Regards,
Doug Wyatt

> Hi.
> 
> On my Win98 machine, I have a sub-dir called "Installer Programs".  (I also
> have other directory names, and file names, with spaces in them.)
> 
> I installed Cygwin, which went OK.  I was copying and moving files, and
> cd'ing throughout the filesystem.  No problems.  That is, until this:
> 
> cd Installer Programs
> 
> It wouldn't let me.  I tried
> 
> cd InstallerPrograms
> cd Installer_Programs
> cd Installer-Programs
> 
> Nothing doing.  Eventually I got there through:
> 
> cd Installer*
> 
> Fortunately I only have the one directory starting with the word
> "Installer".
> 
> I searched throught the Web for some kind of information on spaces in Unix
> filenames.  What little turned up was succinct one-liners, to the tune of
> "Don't use white space in filenames."  Good advice for a Unix-only box, but
> I *already* have the directories and files named as they are!
> 
> Is there some mechanism to navigate in bash through a filesystem where
> directories have spaces in their names?  (I mean, I know Unix sees separate
> words after a command as an argument list, but that doesn't apply in the
> case of "cd" since I don't think you can cd into two separate directories
> simultaneously, in the same shell, at the same time.)
> 
> 
> 
> Regards,
> 
> 
> Paul Bailey.
> 
> 
> 
> 
> 
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe@sourceware.cygnus.com
> 



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]