This is the mail archive of the cygwin 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]
Other format: [Raw text]

RE: Spaces in Environment Variables


> [mailto:cygwin-owner@cygwin.com] On Behalf Of Brian Dessent
> Sent: Saturday, August 27, 2005 5:00 PM
> To: cygwin@cygwin.com
> Subject: Re: Spaces in Environment Variables
> 
> Brian Dessent wrote:
> 
> > $ export PF="/cygdrive/c/Program Files"
> > $ cd "$PF"
> 
> And for the record, I find that it's a heck of a lot easier 
> to do the following once and then never have to deal with 
> this kind of crap again.
> 
> mount -fsb "c:/Program Files" "/pgf"

Agreed.  

A common recommendation in the Windows world is
to use C:\progra~1 which is GENERALLY right but
not totally reliable if either of the following
is true:

	1) This is a second copy of Windows installed
		where an older C:\Progra~1 already
		existed -- and so we have c:\progra~2 etc.

	2) Short names have been disabled

	(and of course if the Program Files aren't on
	the C:\ drive path.)

My practice (even under pure) Windows is to always
setup an alternative path with "linkd".

This is effectively the same principle as just going
ahead and fixing it with your "mount" suggestion.

Thanks for the good suggestion.


--
Herb Martin



--
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/


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