From 7532e5794186b48dfb6532191c40c8e3a80ea702 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 4 Aug 1996 14:15:25 +0000 Subject: [PATCH] (main): Allow `+' in options like -+8 and -+13. --- src/nice.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/nice.c b/src/nice.c index e05cf79383..c9e2713139 100644 --- a/src/nice.c +++ b/src/nice.c @@ -84,8 +84,11 @@ main (int argc, char **argv) adjustment_given = 1; ++optind; } - else if (s[0] == '-' && ISDIGIT (s[1])) + else if (s[0] == '-' && (ISDIGIT (s[1]) + || (s[1] == '+' && ISDIGIT (s[2])))) { + if (s[1] == '+') + ++s; if (!isinteger (&s[1])) error (1, 0, _("invalid option `%s'"), s); -- 2.47.2