delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/02/04/12:58:29

X-Spam-Check-By: sourceware.org
Date: Sat, 4 Feb 2006 19:58:14 +0200
From: Rokas Masiulis <roma1390 AT uosis DOT mif DOT vu DOT lt>
To: cygwin AT cygwin DOT com
Subject: sed
Message-ID: <20060204175814.GA50356@uosis.mif.vu.lt>
Mime-Version: 1.0
User-Agent: Mutt/1.4.2.1i
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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

Hi,

i can't force to work sed in true binary mode:

this is test case:

$ echo -en '\r\n' | sed -e '' | od -t x1
0000000 0a
0000001

but expected result is:
$ echo -en '\r\n' | od -t x1
0000000 0d 0a
0000002


on linux this thing works: 
user AT linux $ echo -en '\r\n' | sed -e '' | od -t x1
0000000 0d 0a
0000002


some info:

$ mount
C:\cygwin\bin on /usr/bin type system (binmode)
C:\cygwin\lib on /usr/lib type system (binmode)
C:\cygwin on / type system (binmode)
c: on /cygdrive/c type system (binmode,noumount)
e: on /cygdrive/e type system (binmode,noumount)
f: on /cygdrive/f type system (binmode,noumount)
g: on /cygdrive/g type system (binmode,noumount)

$ echo "$CYGWIN"x
x

roma1390

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