Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Date: Tue, 30 May 2000 15:42:41 +0300 From: Ville Herva To: cygwin AT sourceware DOT cygnus DOT com, salikhyan DOT shamsutdinov AT intel DOT com Subject: Re: Problems with sed, make and NT4 in general Message-ID: <20000530154240.N115623@niksula.cs.hut.fi> References: <39339BA8 DOT DCFCCBD9 AT ubsw DOT com> <20000530153547 DOT M115623 AT niksula DOT cs DOT hut DOT fi> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3i In-Reply-To: <20000530153547.M115623@niksula.cs.hut.fi> On Tue, May 30, 2000 at 03:35:48PM +0300, you [Ville Herva] claimed: > On Tue, May 30, 2000 at 12:44:56PM +0200, you [Simon Sparkes] claimed: > > 2. sed -f file always reports errors on commands but the same commands > > work fine on the command line. > > Command Example: s/abc/def/ fails in a file with the error "sed: file > > file line 1 Unknown option to 's'" but is the same command is fine on > > the command line. e.g. sed -e 's/abc/def/' > > That's because sed uses mmap for reading the supplied by -f. With mmap, > cygwin does not do the CR/LF conversion (AFAIK). So sed sees option '^M' > for s// and barfs. > > I think I could make a patch for that... Ummh. As of 20000525 snapshot, I can't reproduce this anymore (not with text or binary mounts). I tought the configuretion succeeded because cat > foo <