bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DOS newlines no longer acceptable?


From: Paul Jarc
Subject: Re: DOS newlines no longer acceptable?
Date: Tue, 05 Mar 2002 17:13:55 -0500
User-agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/20.7 (i386-redhat-linux-gnu)

Corrin Lakeland <lakeland@cs.otago.ac.nz> wrote:
> I have been given a script in DOS format (\n\r)

DOS format is \r\n, not \n\r.

> and running bash with it caused errors

Right.  What made you expect differently?

> Write any script.  FTP it in ASCII mode to a dos machine, FTP it
> back in BINARY mode.  Try to run it.

Easier: sed $'s/$/\r/'


paul



reply via email to

[Prev in Thread] Current Thread [Next in Thread]