This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
possible sed bug? (\r at EOL stripped in pipe [no file involved])
- From: Tom Rodman <trodman at nyx dot net>
- To: cygwin at cygwin dot com
- Date: Wed, 23 Jan 2002 09:43:10 -0600
- Subject: possible sed bug? (\r at EOL stripped in pipe [no file involved])
- Reply-to: Tom Rodman <trodman at nyx dot net>
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@nyx.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/