top: fixing command line parsing errors is now a habit
Ok, I admit it. I'm now tired of cleaning up after me.
This is the 3rd related tweak after that '-1' argument
was originally introduced. And with this patch we will
once again properly honor the '-o' and '-u|U' switches
without a need to be followed by an additional switch.
[ one can follow my unfortunate trail of alterations ]
[ beginning with my most recent fix referenced below ]
Reference(s):
commit 4b44aebd80
Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
parent
0998225651
commit
ac76e4db2c
@ -3754,7 +3754,7 @@ static void parse_args (char **args) {
|
|||||||
// advance cp and jump over any numerical args used above
|
// advance cp and jump over any numerical args used above
|
||||||
if (*cp) cp += strspn(&cp[1], numbs_str);
|
if (*cp) cp += strspn(&cp[1], numbs_str);
|
||||||
bump_cp:
|
bump_cp:
|
||||||
++cp;
|
if (*cp) ++cp;
|
||||||
} // end: while (*cp)
|
} // end: while (*cp)
|
||||||
} // end: while (*args)
|
} // end: while (*args)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user