Page MenuHomeFreeBSD

D56621.diff
No OneTemporary

D56621.diff

diff --git a/usr.bin/sed/compile.c b/usr.bin/sed/compile.c
--- a/usr.bin/sed/compile.c
+++ b/usr.bin/sed/compile.c
@@ -253,6 +253,10 @@
link = &cmd->next;
goto semicolon;
}
+ if (*p == '}') {
+ link = &cmd->next;
+ goto semicolon;
+ }
if (*p)
errx(1, "%lu: %s: extra characters at the end of %c command",
linenum, fname, cmd->code);
@@ -343,6 +347,10 @@
link = &cmd->next;
goto semicolon;
}
+ if (*p == '}') {
+ link = &cmd->next;
+ goto semicolon;
+ }
break;
case TR: /* y */
p++;
@@ -353,6 +361,10 @@
link = &cmd->next;
goto semicolon;
}
+ if (*p == '}') {
+ link = &cmd->next;
+ goto semicolon;
+ }
if (*p)
errx(1,
"%lu: %s: extra text at the end of a transform command", linenum, fname);
@@ -697,6 +709,7 @@
case '\0':
case '\n':
case ';':
+ case '}':
return (p);
case 'p':
s->p = 1;

File Metadata

Mime Type
text/plain
Expires
Wed, Jul 22, 1:44 PM (9 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32137160
Default Alt Text
D56621.diff (921 B)

Event Timeline