public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* sed match DOS end of line
@ 2013-06-27 14:24 Paul Becker
  2013-06-27 14:49 ` Corinna Vinschen
  0 siblings, 1 reply; 7+ messages in thread
From: Paul Becker @ 2013-06-27 14:24 UTC (permalink / raw)
  To: cygwin

> From: On Behalf Of Corinna Vinschen
> Sent: Thursday, June 27, 2013 6:49 AM
> Subject: [ANNOUNCEMENT] Updated: sed-4.2.2-2
> 
> I've just updated the Cygwin 32 and 64 bit version of sed to 4.2.2-2.

Since this 'sed' change, I noticed that "$" does not match a dos formatted file end-of-line anymore.

example:
echo "endofline^M" | sed "s/e$/X/"

sed 4.2.1 returns
   endoflinX

sed 4.2.2 returns
   endofline

I don’t know if this is better or worse, or expected or not, but it is easy enough to fix my broken scripts.
Scripts will be less portable between windows and linux now unless I take this into consideration.
(and replace "$" with "^M*$")

$ echo $LC_COLLATE

$ echo $LANG
en_US.UTF-8

--
Paul




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-06-27 17:03 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-27 14:24 sed match DOS end of line Paul Becker
2013-06-27 14:49 ` Corinna Vinschen
2013-06-27 15:16   ` autoreconf/gettext puzzle (was Re: sed match DOS end of line) Corinna Vinschen
2013-06-27 15:42     ` Corinna Vinschen
2013-06-27 15:51     ` Yaakov (Cygwin/X)
2013-06-27 15:55       ` Corinna Vinschen
2013-06-27 17:31         ` Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).