delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT 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 DOT 13123 DOT qm AT web111507 DOT mail DOT gq1 DOT yahoo DOT com> <4A442EEA DOT 3030205 AT gmail DOT 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 AT gmail DOT com> |
To: | cygwin AT cygwin DOT com |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 |
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 AT gmail DOT 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |