From 46da6c48696efda9f4690390189b54ab390f6dea Mon Sep 17 00:00:00 2001 From: Diomidis Spinellis Date: Tue, 11 Nov 2008 17:15:57 +0000 Subject: [PATCH] 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 --- usr.bin/sed/compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/sed/compile.c b/usr.bin/sed/compile.c index a5416ee4429b..39250a3278a6 100644 --- a/usr.bin/sed/compile.c +++ b/usr.bin/sed/compile.c @@ -224,7 +224,7 @@ semicolon: EATSPACE(); case NONSEL: /* ! */ p++; EATSPACE(); - cmd->nonsel = ! cmd->nonsel; + cmd->nonsel = 1; goto nonsel; case GROUP: /* { */ p++;