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


On Sun, 15 Jul 2007, Olivier Lefevre wrote:

> 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
>
> A related problam exists with env file. E.g., after sourcing
>
>   STUFF_HOME="c:\\aa\\bb\\cc"
>   CLASSPATH="c:\\dd\\ee;$STUFF_HOME\\ff\\gg"
>
> $STUFF_HOME is fine but $CLASSPATH is now
>
>   \ff\ggee;c:\aa\bb\cc
>
> alias and env assignment work fine from the command line, so this
> is a source issue. Does anyone have an idea of what is causing this
> nonsense?

Yes.  This nonsense is caused by CRLF line endings in your alias file.
Run it through d2u (and read the bash release announcement[*] while you're
at it).
HTH,
	Igor
[*] <http://cygwin.com/ml/cygwin-announce/2007-05/msg00003.html>
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha@cs.nyu.edu | igor@watson.ibm.com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Belief can be manipulated.  Only knowledge is dangerous.  -- Frank Herbert

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