X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 	tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <4A442EEA.3030205@gmail.com>
References: <318769.13123.qm@web111507.mail.gq1.yahoo.com> 	 <4A442EEA.3030205@gmail.com>
Date: Thu, 25 Jun 2009 22:12:20 -0400
Message-ID: <f60fe000906251912we752b03jd9c4e2dc53f7d606@mail.gmail.com>
Subject: Re: "bash: $'\r': command not found"; also "e"s nonfunctional and get  	deleted in bash window
From: "Mark J. Reed" <markjreed@gmail.com>
To: cygwin@cygwin.com
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@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

On Thu, Jun 25, 2009 at 10:14 PM, Dave Korn wrote:
> Richard Haney wrote:
>
>> I imagine that the messages involving "\r" have something to do with the
>> \r\n conventions. =C2=A0So I should mention that I use WordPad to edit
>> bash-initialization files.
>
> =C2=A0That'll be the cause of the problem then; wordpad is a windows prog=
ram, so
> it tends to use windows-style CR/LF line ends. =C2=A0You can still use it=
 to edit
> shell scripts, but always remember to run "d2u" on them afterward.

Yes.  I would recommend using a different editor, one that can deal
with UNIX newline conventions, so you don't have to take the extra
conversion step.  Of course, both the Cygwin and native Windows
versions of Vim, Emacs, and other cross-platform editors can do this.
The better text editors for Windows can, too, but they tend to be
commercial products, such as TextPad (~$30) and UltraEdit (~$50).

--=20
Mark J. Reed <markjreed@gmail.com>

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

