This is the mail archive of the cygwin@sourceware.cygnus.com 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]

RE: Which editor can be used to edit sh file on Windows 95/98/NT?


Unix/Cygwin uses an LF character to separate lines, while DOS/Windows uses a
CR LF character sequence.

So what's happening, with files created by notepad etc., is that the last
word on each script line is interpreted as having a CR as the last
character.

If you look around the Cygwin web site, you should be able to find an editor
such as vi that won't have the problem.  I think there's also a solution
involving text vs. binary mounts, but I don't know much about how to go
about it.

Ajit

-----Original Message-----
From:	cygwin-owner@sourceware.cygnus.com
[mailto:cygwin-owner@sourceware.cygnus.com] On Behalf Of bi guo
Sent:	Sunday, February 20, 2000 3:56 AM
To:	cygwin@sourceware.cygnus.com
Subject:	Which editor can be used to edit sh file on Windows 95/98/NT?

Hello,folks!I edit a sh file with notepad or writepad
on Windows NT 4.0.But these filea always raise an
error when I run them on bash of Cygwin-B20.1.The
error message usually is "command not found" or "No
such file or directory".I can guarantee The command
syntax in these files is absolutely right.Why?Anyone
can help me?Thanks.

__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


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