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

Reply via email to