make ps accept (and ignore) all options (--help works of course).

tar now works with or without the leading "-" on the options.
 -Erik
This commit is contained in:
Erik Andersen
2000-04-19 03:38:01 +00:00
parent f13df3752c
commit a3e57ca700
6 changed files with 14 additions and 12 deletions

View File

@@ -128,8 +128,9 @@ extern int ps_main(int argc, char **argv)
if (argc > 1 && **(argv + 1) == '-')
if (argc > 1 && strcmp(argv[1], "--help") == 0) {
usage ("ps\n\nReport process status\n\nThis version of ps accepts no options.\n");
}
dir = opendir("/proc");
if (!dir)