diff options
author | dds <dds@FreeBSD.org> | 2008-11-11 17:15:57 +0000 |
---|---|---|
committer | dds <dds@FreeBSD.org> | 2008-11-11 17:15:57 +0000 |
commit | 83407db259b48d45da4d45d23fe20f2565f89a8b (patch) | |
tree | 0985a38067c1c8f8c1798d0fb60f121190f914a6 /usr.bin/sed | |
parent | 84b8296ef73b14ce0d976a5ab391ac245a826fde (diff) | |
download | FreeBSD-src-83407db259b48d45da4d45d23fe20f2565f89a8b.zip FreeBSD-src-83407db259b48d45da4d45d23fe20f2565f89a8b.tar.gz |
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
Diffstat (limited to 'usr.bin/sed')
-rw-r--r-- | usr.bin/sed/compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
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++; |