Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Nov 2008 17:15:57 +0000 (UTC)
From:      Diomidis Spinellis <dds@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r184854 - head/usr.bin/sed
Message-ID:  <200811111715.mABHFvAB007468@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dds
Date: Tue Nov 11 17:15:57 2008
New Revision: 184854
URL: http://svn.freebsd.org/changeset/base/184854

Log:
  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."
  
  MFC after:	2 weeks

Modified:
  head/usr.bin/sed/compile.c

Modified: head/usr.bin/sed/compile.c
==============================================================================
--- head/usr.bin/sed/compile.c	Tue Nov 11 17:12:26 2008	(r184853)
+++ head/usr.bin/sed/compile.c	Tue Nov 11 17:15:57 2008	(r184854)
@@ -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?200811111715.mABHFvAB007468>