delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/08/15/11:59:22

X-Spam-Check-By: sourceware.org
Subject: RE: Problem with Text mounts after updating using setup.exe
Date: Wed, 15 Aug 2007 18:02:10 +0200
MIME-Version: 1.0
Message-ID: <30593C81E890114EAC2DCAE5AC7E5C990183BC4F@GDEXCH6.ortec.intranet>
In-Reply-To: <Pine.GSO.4.63.0708151030430.17254@access1.cims.nyu.edu>
From: "Bart van der Werf" <BWerf AT ortec DOT nl>
To: <cygwin AT cygwin DOT com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id l7FFxBBL013505

 

> From: Igor Peshansky
> On Wed, 15 Aug 2007, Bart van der Werf wrote:
> 
> > After upgrading cygwin some of my textmode mount files 
> started to have 
> > additional 0x0d characters.
> 
> You won't get them on a binmode mount.  Looks like grep opens 
> the input and output in binmode.  The shell redirection opens 
> the output in the mode of the mount where the output is to be 
> placed.  Thus, grep prints out the full input string 
> (including the CR) and the shell happily prepends another CR 
> to the LF.
> 
> A workaround would be to put the output file on a binmode 
> mount.  Another thing that *might* work is using input 
> redirection as well as output (i.e., "grep a < test.txt > test2.txt").
> 
> FWIW, I can't reproduce this with grep-2.5.1a-2, which means 
> this behavior was introduced in -4.
> HTH,
> 	Igor

Hi Igor

Yes i'm using -4

I can't figure out how to get to an older version to see if this
localizes the problem, hints ?

I prefer not to have to add workarounds, this problem is visible in the
department buildtools, a rather large set of hundreds of make scripts,
luckily must users haven't upgraded yet.

If someone else could confirm it would help with making a bit more
formal bugreport if someone is intrested.

Greets, Bart


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


- Raw text -


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