From a3e57ca7008cbaf612675b9de3dd18109f8150de Mon Sep 17 00:00:00 2001 From: Erik Andersen Date: Wed, 19 Apr 2000 03:38:01 +0000 Subject: make ps accept (and ignore) all options (--help works of course). tar now works with or without the leading "-" on the options. -Erik --- procps/ps.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'procps') diff --git a/procps/ps.c b/procps/ps.c index 1b3f4fb..8d59700 100644 --- a/procps/ps.c +++ b/procps/ps.c @@ -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) -- cgit v1.1