diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2013-07-08 01:43:40 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2013-07-08 01:43:40 +0200 |
commit | e93d15613e827db0d1a7ee7e251b7360bb7ab447 (patch) | |
tree | 8e445eed89502bbe2698de21c77a07b143b49912 | |
parent | d8f6d8c627155997596cc140fabda88e5e72dc4f (diff) | |
download | busybox-w32-e93d15613e827db0d1a7ee7e251b7360bb7ab447.tar.gz busybox-w32-e93d15613e827db0d1a7ee7e251b7360bb7ab447.tar.bz2 busybox-w32-e93d15613e827db0d1a7ee7e251b7360bb7ab447.zip |
sed: document where we are more liberal then GNU
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | editors/sed.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/editors/sed.c b/editors/sed.c index f8ca5d351..f90bc5449 100644 --- a/editors/sed.c +++ b/editors/sed.c | |||
@@ -649,6 +649,12 @@ static void add_cmd(const char *cmdstr) | |||
649 | sed_cmd->cmd = *cmdstr++; | 649 | sed_cmd->cmd = *cmdstr++; |
650 | cmdstr = parse_cmd_args(sed_cmd, cmdstr); | 650 | cmdstr = parse_cmd_args(sed_cmd, cmdstr); |
651 | 651 | ||
652 | /* cmdstr now points past args. | ||
653 | * GNU sed requires a separator, if there are more commands, | ||
654 | * else it complains "char N: extra characters after command". | ||
655 | * Example: "sed 'p;d'". We also allow "sed 'pd'". | ||
656 | */ | ||
657 | |||
652 | /* Add the command to the command array */ | 658 | /* Add the command to the command array */ |
653 | *G.sed_cmd_tail = sed_cmd; | 659 | *G.sed_cmd_tail = sed_cmd; |
654 | G.sed_cmd_tail = &sed_cmd->next; | 660 | G.sed_cmd_tail = &sed_cmd->next; |