Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) MIME-Version: 1.0 To: Kazuyuki Hagiwara 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: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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/