-----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 [EMAIL PROTECTED] 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/