delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/07/25/08:36:20

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <42E4DCB9.8050102@byu.net>
Date: Mon, 25 Jul 2005 06:36:09 -0600
From: Eric Blake <ebb9 AT byu DOT net>
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
MIME-Version: 1.0
To: Kazuyuki Hagiwara <hagiwara AT zuken DOT co DOT jp>
CC: cygwin AT cygwin DOT com
Subject: Re: How does one set aliases for Cygwin for XP Prof Windows - Still doesn't work! HELP!
References: <GGEDKDOBJHJHBKEJFPFKGENFEFAA DOT hagiwara AT zuken DOT co DOT jp>
In-Reply-To: <GGEDKDOBJHJHBKEJFPFKGENFEFAA.hagiwara@zuken.co.jp>
X-IsSubscribed: yes

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Kazuyuki Hagiwara on 7/24/2005 10:25 PM:
> Patrick,
> Probably you have to change the HOME environment variable.
> like
> HOME=/cygdrive/c/users/shoreuser
> 
> The space character in HOME might cause the problem.

Bash uses tilde-expansion to find ~/.bashrc, where ~ expands to the
contents of HOME.  But I just checked, and POSIX requires that the space
character be preserved and not split words when it is the result of tilde
expansion.  Every shell I tried (except ash, which doesn't do tilde
expansion) does the correct thing here:

$ bash -c 'HOME="two  spaces"; echo ~'
two  spaces

That said, I think Larry's advice is the best - re-read
/etc/defaults/etc/profile to determine how HOME is set when bash first
starts up, re-read the bash man page to determine which files bash sources
on startup, and attach the output of cygcheck -svr if you want further
diagnosis (such as you are using an older version of bash).

- --
Life is short - so eat dessert first!

Eric Blake             ebb9 AT byu DOT net
volunteer cygwin bash maintainer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFC5Ny584KuGfSFAYARAnkdAKDPuHA8eSWAeiffuyPEJ3ZXy+nl6gCfWF3I
j6NJnWFrTbZTqmksfG1XXVg=
=ViNo
-----END PGP SIGNATURE-----

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019