This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: bash script works on one PC, bombs on another?


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]