Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Mar 2010 10:50:03 GMT
From:      Garrett Cooper <yanefbsd@gmail.com>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/144441: sed(1): Confusing error message from sed with  's/.*/d' ": unescaped newline inside substitute pattern
Message-ID:  <201003151050.o2FAo3NQ010012@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/144441; it has been noted by GNATS.

From: Garrett Cooper <yanefbsd@gmail.com>
To: bug-followup@FreeBSD.org, gcooper@FreeBSD.org
Cc: dds@freebsd.org
Subject: Re: bin/144441: sed(1): Confusing error message from sed with 
	's/.*/d' ": unescaped newline inside substitute pattern
Date: Mon, 15 Mar 2010 03:41:44 -0700

     Someone appears to have inadvertently fixed this between 8.x and CURRENT:
 
 [gcooper@bayonetta
 /scratch/src/head/tools/regression/usr.bin/hexdump]$ sed 's/games:/d'
 /etc/passwd
 sed: 1: "s/games:/d": unterminated substitute in regular expression
 [gcooper@bayonetta /scratch/src/head/tools/regression/usr.bin/hexdump]$ uname -a
 FreeBSD bayonetta.localdomain 9.0-CURRENT FreeBSD 9.0-CURRENT #2: Thu
 Mar  4 13:16:39 PST 2010
 gcooper@bayonetta.localdomain:/usr/obj/usr/src/sys/BAYONETTA  amd64
 
     This statement makes much more logical sense than the one
 currently reported in 8-STABLE.
     I believe r197362 did the trick, but I need to verify whether or
 not this is true. If it isn't that change then it's most likely
 r197361.
 Thanks,
 -Garrett



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003151050.o2FAo3NQ010012>