Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Date: Thu, 14 Sep 2000 11:22:14 +0100 Message-ID: <6728-Thu14Sep2000112214+0100-starksb@ebi.ac.uk> X-Mailer: emacs 20.7.1 (via feedmail 9-beta-7 I); VM 6.75 under Emacs 20.7.1 From: David Starks-Browning MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Guansong Zhang Cc: cygwin AT sourceware DOT cygnus DOT com Subject: Re: set HOME environment In-Reply-To: <20000913193811.16738.qmail@web117.yahoomail.com> References: <20000913193811 DOT 16738 DOT qmail AT web117 DOT yahoomail DOT com> > --- Guansong Zhang wrote: > > I can do different things to make it work, but the right thing seems to let > > cygwin system understand that when it converts path format it should put a \ > > before a space. So one can use set HOME=%USERPROFILE% in the .bat file. and > > HOME *should* be considered a Window envrionment, right? Personally, I don't agree that %USERPROFILE% is a good choice for $HOME in Cygwin. In any case, it's a matter of personal choice and you can edit /etc/profile to change it. That $USER may contain a space is another matter. Adding quotes in /etc/profile will permit HOME to be defined correctly, space and all, but whenever $HOME is substituted, things are likely to break. That's why nobody would (intentionally) have USER/LOGNAME/HOME with an embedded space in UNIX. If you want Cygwin to work well, you have to deal with this. It's probably better in the long run if these windows users picked a new, space-less USER and/or HOME variable and set that explicitly in /etc/profile. I'll try to add something to the FAQ about this. Cheers, David -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com