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: source command horribly broken after Cygwin update


Eric Blake wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Olivier Lefevre on 7/14/2007 8:49 PM:
Current bash version is 3.2.17(15)-release. When I read an alias file
with source weird results ensue. E.g., if the alias file is

  alias rm='rm -i'
  alias mv='mv -i'

then 'source /etc/alias' followed by 'alias' shows

  'lias mv='mv -i
  'lias rm='rm -i

Your sourced file has DOS line endings, but you are using a binary mount. Reread the bash release announcement; then either use d2u to convert your files to Unix line endings, swap over to using text mounts, or use the cygwin-specific igncr bash option to ignore the spurious \r in your files.

http://cygwin.com/ml/cygwin-announce/2007-05/msg00003.html

And searching the mailing list would have taught you that this has been
discussed ad nauseum over the past few months - googling first before
posting would save some embarrassment on your part.

- --
Don't work too hard, make some time for fun as well!

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

iD8DBQFGmY6f84KuGfSFAYARAj6cAKC31RLR8lWAiKYOrGAYRCuB1UuiPwCgtonY
uIlKDgPZKsfkszY8Tcv1REk=
=ZXl4
-----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]