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: How does one set aliases for Cygwin for XP Prof Windows - Still doesn't work! HELP!


-----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@byu.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/


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