delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Message-Id: | <200201231543.JAA08779@tigris.pounder.sol.net> |
To: | cygwin AT cygwin DOT com |
Reply-to: | Tom Rodman <trodman AT nyx DOT net> |
From: | Tom Rodman <trodman AT nyx DOT net> |
Mime-Version: | 1.0 |
Subject: | possible sed bug? (\r at EOL stripped in pipe [no file involved]) |
Date: | Wed, 23 Jan 2002 09:43:10 -0600 |
The sed that I downloaded w/1.3.6 seems to strip the carriage return at EOL - nothing to do w/mount points; it is doing this in a pipe (no file involved). See below: -- Tom Rodman <trodman AT nyx DOT net> Problem under 1.3.6: --v-v------------------C-U-T---H-E-R-E-------------------------v-v-- > 09:30:01 Wed Jan 23 /drv/c/WINNT > WS011206 adm > perl -e 'printf "1 line of DOS style text\r\n";'|sed 's:xx::'|od -a 0000000 1 sp l i n e sp o f sp D O S sp s t 0000020 y l e sp t e x t nl 0000031 > 09:30:13 Wed Jan 23 /drv/c/WINNT > WS011206 adm > uname -a CYGWIN_NT-4.0 WS011206 1.3.6(0.47/3/2) 2001-12-08 17:02 i686 unknown > 09:30:29 Wed Jan 23 /drv/c/WINNT > WS011206 adm > perl -e 'printf "1 line of DOS style text\r\n";'|od -a 0000000 1 sp l i n e sp o f sp D O S sp s t 0000020 y l e sp t e x t cr nl 0000032 Good Version: --v-v------------------C-U-T---H-E-R-E-------------------------v-v-- > 09:28:54 Wed Jan 23 /tmp > CMKE756 adm > perl -e 'printf "1 line of DOS style text\r\n";'|sed 's:xx::'|od -a 0000000 1 sp l i n e sp o f sp D O S sp s t 0000020 y l e sp t e x t cr nl 0000032 > 09:29:01 Wed Jan 23 /tmp > CMKE756 adm > uname -a CYGWIN_NT-4.0 CMKE756 21.0 (0.14/2/2) 1999-9-13 20:44:35 i1586 unknown -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |