From: millert Date: Tue, 23 Jun 2015 22:52:55 +0000 (+0000) Subject: POSIX specifies that that multiple '!' characters preceding a X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=3ad711f663dbfc66f7b6cab8f56380ad776b6a9f;p=openbsd POSIX specifies that that multiple '!' characters preceding a function should be treated as a single negation. From FreeBSD via Liviu Daia. --- diff --git a/usr.bin/sed/compile.c b/usr.bin/sed/compile.c index 266da719772..5e8cce91eaf 100644 --- a/usr.bin/sed/compile.c +++ b/usr.bin/sed/compile.c @@ -1,4 +1,4 @@ -/* $OpenBSD: compile.c,v 1.37 2014/12/12 03:32:55 jsg Exp $ */ +/* $OpenBSD: compile.c,v 1.38 2015/06/23 22:52:55 millert Exp $ */ /*- * Copyright (c) 1992 Diomidis Spinellis. @@ -208,7 +208,7 @@ nonsel: /* Now parse the command */ case NONSEL: /* ! */ p++; EATSPACE(); - cmd->nonsel = ! cmd->nonsel; + cmd->nonsel = 1; goto nonsel; case GROUP: /* { */ p++;