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: Subject: Re: "bash: $'\r': command not found"; also "e"s nonfunctional and get deleted in bash window From: "Mark J. Reed" To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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 -- 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