diff options
Diffstat (limited to 'editors/sed.c')
-rw-r--r-- | editors/sed.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/editors/sed.c b/editors/sed.c index 22580cf..1a10988 100644 --- a/editors/sed.c +++ b/editors/sed.c @@ -1508,16 +1508,14 @@ int sed_main(int argc UNUSED_PARAM, char **argv) opt_e = opt_f = NULL; opt_i = NULL; opt_complementary = "nn"; /* count -n */ - - IF_LONG_OPTS(applet_long_options = sed_longopts); - /* -i must be first, to match OPT_in_place definition */ /* -E is a synonym of -r: * GNU sed 4.2.1 mentions it in neither --help * nor manpage, but does recognize it. */ - opt = getopt32(argv, "i::rEne:*f:*", &opt_i, &opt_e, &opt_f, - &G.be_quiet); /* counter for -n */ + opt = getopt32long(argv, "i::rEne:*f:*", sed_longopts, + &opt_i, &opt_e, &opt_f, + &G.be_quiet); /* counter for -n */ //argc -= optind; argv += optind; if (opt & OPT_in_place) { // -i |