delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/10/21/00:02:04

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Sat, 21 Oct 2000 00:01:22 -0400
From: Christopher Faylor <cgf AT redhat DOT com>
To: cygwin AT sources DOT redhat DOT com
Subject: Re: CygWin 1.1.4: problem in default /etc/profile when HOME has s paces
Message-ID: <20001021000122.A12377@redhat.com>
Reply-To: cygwin AT sources DOT redhat DOT com
Mail-Followup-To: cygwin AT sources DOT redhat DOT com
References: <20001020135512 DOT 24681 DOT qmail AT web116 DOT yahoomail DOT com> <4 DOT 3 DOT 1 DOT 2 DOT 20001020191326 DOT 0206e130 AT pop DOT ma DOT ultranet DOT com> <060201c03b12$fdeb24b0$f7c723cb AT lifelesswks>
Mime-Version: 1.0
User-Agent: Mutt/1.3.6i
In-Reply-To: <060201c03b12$fdeb24b0$f7c723cb@lifelesswks>; from robert.collins@itdomain.com.au on Sat, Oct 21, 2000 at 02:57:10PM +1100

Cygwin uses the PATH variable internally.  The windows API has no
problems with filenames or directories with spaces in them.  When you
start attempting to use filenames with spaces on a command line, then
you have problems.  You have problems with PATH in this context, too,
and, in fact, people have reported the same overwhelming perplexing
problems with using PATH in this context as they have with HOME.

cgf

On Sat, Oct 21, 2000 at 02:57:10PM +1100, Robert Collins wrote:
>Well the path variable is an example of this that seems to work w/o
>problems.
>
>Rob
>----- Original Message -----
>From: "Larry Hall (RFK Partners, Inc)" <lhall AT rfk DOT com>
>To: "Robert Collins" <robert DOT collins AT itdomain DOT com DOT au>; "Earnie Boyd"
><earnie_boyd AT yahoo DOT com>; "Town, Brad" <btown AT ceddec DOT com>; "'Ignasi
>Palou-Rivera'" <palou AT yahoo DOT com>; <cygwin AT sourceware DOT cygnus DOT com>
>Sent: Saturday, October 21, 2000 10:17 AM
>Subject: Re: CygWin 1.1.4: problem in default /etc/profile when HOME has s
>paces
>
>
>> If you can figure a way to make sure that spaces in HOME are always
>treated
>> as escaped no matter how its used, that's a possibility.  After doing some
>> shell programming, its not clear to me how one could guarantee that spaces
>> in any environment variable is always escaped but just because the notion
>> eludes me doesn't mean it couldn't be done!;-)
>>
>> Larry Hall                              lhall AT rfk DOT com
>> RFK Partners, Inc.                      http://www.rfk.com
>> 118 Washington Street                   (508) 893-9779 - RFK Office
>> Holliston, MA 01746                     (508) 893-9889 - FAX
>>
>>
>>
>> At 07:13 PM 10/20/2000, Robert Collins wrote:
>> >What about having cygwin "\ " escape the spaces?
>> >
>> >Worth a thought?
>> >
>> >Rob
>> >
>> >----- Original Message -----
>> >From: "Earnie Boyd" <earnie_boyd AT yahoo DOT com>
>> >To: "Town, Brad" <btown AT ceddec DOT com>; "'Ignasi Palou-Rivera'"
>> ><palou AT yahoo DOT com>; <cygwin AT sourceware DOT cygnus DOT com>
>> >Sent: Saturday, October 21, 2000 12:55 AM
>> >Subject: RE: CygWin 1.1.4: problem in default /etc/profile when HOME has
>s
>> >paces
>> >
>> >
>> > > Brad's comment is certainly valid but your solution, Ignasi, is
>already
>> > > implemented in the current setup.exe.  IMO the better solution is to
>use a
>> > > mount point like so (using Brad's example):
>> > >   mkdir -p /home/palau ;# if it doesn't already exist
>> > >   mount -b "C:/Documents and Settings/palau/My Documents" /home/palau
>> > >
>> > > I suppose that we should add a W2K entry in the TODO list for this
>issue.
>> > >
>> > > Cheers,
>> > > Earnie.
>> > > --- "Town, Brad" <btown AT ceddec DOT com> wrote:
>> > > > The best solution would be to not have spaces in HOME at all, since
>it
>> > > > breaks many a good program.  For example, if you wanted your home
>> >directory
>> > > > to be "C:\Documents and Settings\palau\My Documents", you could use
>> > > > "C:\Docume~1\palau\MyDocu~1" or a mount point.
>> > > >
>> > > > Brad Town
>> > > >
>> > > >
>> > > > > -----Original Message-----
>> > > > > From: Ignasi Palou-Rivera [mailto:palou AT yahoo DOT com]
>> > > > > Sent: Friday, October 20, 2000 9:33 AM
>> > > > > To: cygwin AT sourceware DOT cygnus DOT com
>> > > > > Subject: CygWin 1.1.4: problem in default /etc/profile when HOME
>has
>> > > > > spaces
>> > > > >
>> > > > >
>> > > > > The default /etc/profile for the 1.1.4 version of CygWin chokes
>when
>> > > > > HOME is defined including blanks. The solution is to quote the
>> > > > > reference to $HOME in line 14:
>> > > > >
>> > > > > IPALOU$ diff profile profile.orig
>> > > > > 14c14
>> > > > > < if [ ! -d "$HOME" ]; then
>> > > > > ---
>> > > > > > if [ ! -d $HOME ]; then
>> > > > >
>> > > > > I'm running under Win2000, but I'm sure that's irrelevant.
>> > > > >
>> > > > > Ignasi.
>> > > >
>> > > > --
>> > > > Want to unsubscribe from this list?
>> > > > Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
>> > > >
>> > >
>> > >
>> > > __________________________________________________
>> > > Do You Yahoo!?
>> > > Yahoo! Messenger - Talk while you surf!  It's FREE.
>> > > http://im.yahoo.com/
>> > >
>> > > --
>> > > Want to unsubscribe from this list?
>> > > Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
>> > >
>> > >
>> >
>> >
>> >--
>> >Want to unsubscribe from this list?
>> >Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
>>
>>
>
>
>--
>Want to unsubscribe from this list?
>Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

-- 
cgf AT cygnus DOT com                        Red Hat, Inc.
http://sources.redhat.com/            http://www.redhat.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