--- Ven 3/4/09, Charles Wilson ha scritto:
> Da: Charles Wilson <cyg...@cwilson.fastmail.fm>
> Oggetto: Re: compilation with cygport spoiled by spaces in pathnames?
> A: cygwin@cygwin.com
> Data: Venerdì 3 Aprile 2009, 14:38
> Thomas Wolff wrote:
>
> > Is this a generic problem? From the make output, it's
> not clear which program
> > actually raised the problem ("Can't find c:\Program on
> PATH.") - gcc, mv, rm?
> > I had the impression that spaces in path names (which
> unfortunately do occur
> > under Windows) are usually handled properly.
>
> No, spaces are NOT usually handled "properly" in the way
> you mean.
>
> OTOH, they ARE handled "properly" if by "properly" you mean
> "treated as
> separators between words". This is just ONE of the reasons
> why EVERYBODY
> and their sister says "Spaces are DUMB. You're just asking
> for trouble.
> Don't do it if you want to use cmdline tools -- like
> cygwin"
>
> I'm sorry to say that mixing spaces into Cygwin paths is
> never going to
> work smoothly; there are just too many unix-derived
> entities that rely
> on the spaces-separate-words behavior. To change them
> all would
> be...more trouble than it is worth. And there's
> already a workaound:
> mount any external paths that embed spaces:
>
> mount [options] C:/Programs\ Files /program_files
>
> --
> Chuck
other workaround, define a PATH for cygwin
without space in names
in my .bash_profile I put
PATH=${HOME}/bin:/usr/local/bin:/bin:/usr/lib/lapack:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS
to clean and remove all redundant directories
Marco
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/