summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2020-02-19 19:26:43 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2020-02-19 19:26:43 +0100
commit219741ac012ee7341bff6cfd8f4b49b09a66ab17 (patch)
tree369d6565f81bc780b716509f6ff44e70c8ac83e3
parent234aafb38da9d3486cceda5c28b529a5343fdf65 (diff)
sed: allow whitespace after ! negation (thanks k0ga)
-rw-r--r--sys/src/cmd/sed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/sed.c b/sys/src/cmd/sed.c
index 46d3cad6a..d9ea3c2c5 100644
--- a/sys/src/cmd/sed.c
+++ b/sys/src/cmd/sed.c
@@ -308,10 +308,10 @@ comploop:
} else
rep->ad2.type = A_NONE;
}
+swit:
while(*cp == L' ' || *cp == L'\t')
cp++;
-swit:
switch(*cp++) {
default:
quit("Unrecognized command: %S", linebuf);