X-Spam-Check-By: sourceware.org Date: Sat, 14 Jul 2007 23:19:19 -0400 (EDT) From: Igor Peshansky Reply-To: cygwin AT cygwin DOT com To: Olivier Lefevre cc: cygwin AT cygwin DOT com Subject: Re: source command horribly broken after Cygwin update In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 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://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT 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/