From 83407db259b48d45da4d45d23fe20f2565f89a8b Mon Sep 17 00:00:00 2001 From: dds Date: Tue, 11 Nov 2008 17:15:57 +0000 Subject: 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(-) (limited to 'usr.bin/sed') diff --git a/usr.bin/sed/compile.c b/usr.bin/sed/compile.c index a5416ee..39250a3 100644 --- a/usr.bin/sed/compile.c +++ b/usr.bin/sed/compile.c @@ -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++; -- cgit v1.1