From 1f0cfeef3ca3421ca6dc4b1fdbd6aa3bc3087302 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Fri, 11 Jan 2019 22:01:44 -0600 Subject: Fix b ending with } For a definition of "fix" that's even _more_ of a deviation from posix, but matches what debian does... --- toys/posix/sed.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys/posix/sed.c') diff --git a/toys/posix/sed.c b/toys/posix/sed.c index 3073a69c..bab6fb00 100644 --- a/toys/posix/sed.c +++ b/toys/posix/sed.c @@ -944,7 +944,7 @@ resume_a: command->hit = 0; // btT: end with space or semicolon, aicrw continue to newline. - if (!(end = strcspn(line, strchr(":btT", c) ? "; \t\r\n\v\f" : "\n"))) { + if (!(end = strcspn(line, strchr(":btT", c) ? "}; \t\r\n\v\f" : "\n"))) { // Argument's optional for btT if (strchr("btT", c)) continue; else if (!command->arg1) break; -- cgit v1.2.3