From: David A. Wheeler Date: Fri, 6 Dec 2013 01:42:17 +0000 (-0500) Subject: sed: accept s///i as a synonym for s///I ("ignore case") X-Git-Tag: 1_22_0~7 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=80a068d741b32850a45e815db90c4d92c636b157;p=oweals%2Fbusybox.git sed: accept s///i as a synonym for s///I ("ignore case") Signed-off-by: David A. Wheeler Signed-off-by: Denys Vlasenko --- diff --git a/editors/sed.c b/editors/sed.c index 31fb103ec..e18e48ab5 100644 --- a/editors/sed.c +++ b/editors/sed.c @@ -381,7 +381,7 @@ static int parse_subst_cmd(sed_cmd_t *sed_cmd, const char *substr) /* * A substitution command should look something like this: - * s/match/replace/ #gIpw + * s/match/replace/ #giIpw * || | ||| * mandatory optional */ @@ -429,6 +429,7 @@ static int parse_subst_cmd(sed_cmd_t *sed_cmd, const char *substr) break; } /* Ignore case (gnu exension) */ + case 'i': case 'I': cflags |= REG_ICASE; break;