X-Spam-Check-By: sourceware.org
Message-ID: <4590382E.7010104@byu.net>
Date: Mon, 25 Dec 2006 13:44:30 -0700
From: Eric Blake <ebb9@byu.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.9) Gecko/20061207 Thunderbird/1.5.0.9 Mnenhy/0.7.4.666
MIME-Version: 1.0
To: cygwin@cygwin.com, hyam.singer@impact-computing.com
Subject: Re: Problems with bashrc in cygwin
References: <001a01c7285a$86759910$6601a8c0@IMPACTHS>
In-Reply-To: <001a01c7285a$86759910$6601a8c0@IMPACTHS>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Hyam Singer on 12/25/2006 12:26 PM:
> I have installed cygwin and am having problems with my bashrc that I have
> been unable to resolve.  I am sure I must be missing something obvious, but
> the source of the problem evades me.  The most perplexing symptom I am
> experiencing is the following:
> 
> If I include the following in my .bashrc:
>     x1="xyz"
>     x2="123"
>     x3=$x1/$x2
> then when I subsequently type "echo $x3" at the command line, the response
> is "/123" rather than the expected "xyz/123".

That's because you failed to read the release notes, and your script has
DOS line endings (you are picking up a \r in $x1, and it is resetting the
cursor so that when echoing to the terminal, the /123 overwrites the
already written xyz).

http://cygwin.com/ml/cygwin-announce/2006-12/msg00026.html

- --
Life is short - so eat dessert first!

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

iD8DBQFFkDgu84KuGfSFAYARAnlZAJ4p6QaQCKcf6nAitGpV/4A5TdoTPgCgnatC
kedNzqrRkp55nDN17jaes3A=
=V1uH
-----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/

