bin/144441: sed(1): Confusing error message from sed with 's/.*/d' ": unescaped newline inside substitute pattern

Garrett Cooper yanefbsd at gmail.com
Mon Mar 15 10:50:03 UTC 2010


The following reply was made to PR bin/144441; it has been noted by GNATS.

From: Garrett Cooper <yanefbsd at gmail.com>
To: bug-followup at FreeBSD.org, gcooper at FreeBSD.org
Cc: dds at 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 at 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 at 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 at 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


More information about the freebsd-bugs mailing list