Date: Tue, 3 Feb 2009 12:56:05 +0000 (UTC) From: Diomidis Spinellis <dds@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org Subject: svn commit: r188068 - stable/7/usr.bin/sed Message-ID: <200902031256.n13Cu5q1030739@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dds Date: Tue Feb 3 12:56:05 2009 New Revision: 188068 URL: http://svn.freebsd.org/changeset/base/188068 Log: MFC 184854 from head to stable/7 Fix the code to conform to the "or more" part of the following POSIX specification and regression test regress:25. "A function can be preceded by one or more '!' characters, in which case the function shall be applied if the addresses do not select the pattern space." _M 7/usr.bin/sed M 7/usr.bin/sed/compile.c Modified: stable/7/usr.bin/sed/ (props changed) stable/7/usr.bin/sed/compile.c Modified: stable/7/usr.bin/sed/compile.c ============================================================================== --- stable/7/usr.bin/sed/compile.c Tue Feb 3 11:04:03 2009 (r188067) +++ stable/7/usr.bin/sed/compile.c Tue Feb 3 12:56:05 2009 (r188068) @@ -224,7 +224,7 @@ nonsel: /* Now parse the command */ case NONSEL: /* ! */ p++; EATSPACE(); - cmd->nonsel = ! cmd->nonsel; + cmd->nonsel = 1; goto nonsel; case GROUP: /* { */ p++;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902031256.n13Cu5q1030739>