From fd75fb84178fb083ef0af86f7775323b449b636b Mon Sep 17 00:00:00 2001 From: imp Date: Wed, 31 Mar 2010 17:40:13 +0000 Subject: Make -r mean exactly the same thing as -E for increased compatibility with GNU sed. MFC after: 7 days --- usr.bin/sed/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr.bin/sed/main.c') diff --git a/usr.bin/sed/main.c b/usr.bin/sed/main.c index 1a140b1..8d4fe95 100644 --- a/usr.bin/sed/main.c +++ b/usr.bin/sed/main.c @@ -130,8 +130,9 @@ main(int argc, char *argv[]) fflag = 0; inplace = NULL; - while ((c = getopt(argc, argv, "EI:ae:f:i:ln")) != -1) + while ((c = getopt(argc, argv, "EI:ae:f:i:lnr")) != -1) switch (c) { + case 'r': /* Gnu sed compat */ case 'E': rflags = REG_EXTENDED; break; -- cgit v1.1