bash script works on one PC, bombs on another?

Mark J. Reed markjreed@mail.com
Sun Apr 20 14:49:00 GMT 2008


On Sat, Apr 19, 2008 at 4:30 PM, Dave Burns <tburns@hawaii.edu> wrote:
>  I considered that, and edited the file using vim, and retyped that
>  line. Is that enough to eliminate that possibility?

Nope, vim will happily preserve the line-ending convention of the
file.  Look for an indicator in the status line - "(text)" or "(text
mode)" or "(DOS)" or something, don't recall offhand. That means it
has CRLF's.  You can fix it by typing :set notextmode and then writing
it back out.  Or, as Gary said, run d2u on it.

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

--
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/



More information about the Cygwin mailing list