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++;
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to