projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9355c4
)
sed: accept s///i as a synonym for s///I ("ignore case")
author
David A. Wheeler
<dwheeler@dwheeler.com>
Fri, 6 Dec 2013 01:42:17 +0000
(20:42 -0500)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Wed, 18 Dec 2013 15:23:49 +0000
(16:23 +0100)
Signed-off-by: David A. Wheeler <dwheeler@dwheeler.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
editors/sed.c
patch
|
blob
|
history
diff --git
a/editors/sed.c
b/editors/sed.c
index 31fb103ec601a6f3e7a4381b0a178bd8e7ab9841..e18e48ab5ba0fc0265ee688456e5da9569de9186 100644
(file)
--- 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/ #g
i
Ipw
* || | |||
* 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;