From 3ad711f663dbfc66f7b6cab8f56380ad776b6a9f Mon Sep 17 00:00:00 2001 From: millert Date: Tue, 23 Jun 2015 22:52:55 +0000 Subject: [PATCH] POSIX specifies that that multiple '!' characters preceding a function should be treated as a single negation. From FreeBSD via Liviu Daia. --- usr.bin/sed/compile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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++; -- 2.20.1