X-Spam-Check-By: sourceware.org From: "Gary R. Van Sickle" To: Subject: RE: Bash 3.1.17(8) CR/LF problem Date: Wed, 27 Sep 2006 20:52:10 -0500 Message-ID: <003401c6e2a0$b67d0850$020aa8c0@DFW5RB41> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <451B21EE.3030003@byu.net> X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk 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 > From: Eric Blake > Sent: Wednesday, September 27, 2006 8:14 PM > Subject: Re: Bash 3.1.17(8) CR/LF problem > [snip] > > I guess I'm 50/50 here. On one hand is most certainly not a > > standard line terminator character on Unix systems, but at the same > > time Cygwin advertises a "collection of tools which provide > Linux look > > and feel" for Windows. > > Here's my take on it. If you want POSIX behavior and Linux > compatibility, use binary mounts and LF line endings, and > don't edit files with notepad. Actually, it would be: "don't use notepad at all, don't create any text files you want bash to understand with any native Windows text editor, and if you are going to use a native Windows text editor to edit files you want bash to understand, make sure it maintains the original line endings. Also, make sure any other tools you might wish to use to process text, cygwin or non-cygwin, do the same." The "/r/n vs /n vs /r" Crisis Which Shall Plague Computer Science Forever is most assuredly not merely a matter of "don't use notepad". -- Gary R. Van Sickle -- 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/