delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/02/20/05:05:08

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
From: "Ajit George" <gajit AT kurianinc DOT com>
To: <cygwin AT sourceware DOT cygnus DOT com>
Subject: RE: Which editor can be used to edit sh file on Windows 95/98/NT?
Date: Sun, 20 Feb 2000 04:12:07 -0600
Message-ID: <000501bf7b8a$f118c960$64b8bfa8@bertie.kurianinc.com>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook 8.5, Build 4.71.2377.0
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0
In-Reply-To: <20000220095607.2503.qmail@web3707.mail.yahoo.com>

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 AT sourceware DOT cygnus DOT com
[mailto:cygwin-owner AT sourceware DOT cygnus DOT com] On Behalf Of bi guo
Sent:	Sunday, February 20, 2000 3:56 AM
To:	cygwin AT sourceware DOT cygnus DOT 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 AT sourceware DOT cygnus DOT com



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019