svn commit: r188068 - stable/7/usr.bin/sed

Diomidis Spinellis dds at FreeBSD.org
Tue Feb 3 04:56:07 PST 2009


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++;


More information about the svn-src-stable-7 mailing list