delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/12/25/15:44:45

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 AT byu DOT 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 AT cygwin DOT com, hyam DOT singer AT impact-computing DOT com
Subject: Re: Problems with bashrc in cygwin
References: <001a01c7285a$86759910$6601a8c0 AT IMPACTHS>
In-Reply-To: <001a01c7285a$86759910$6601a8c0@IMPACTHS>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT 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 AT byu DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019