commit | 8269396491913ab551b558756f6581a4d12bd00f | [log] [tgz] |
---|---|---|
author | Eric Andersen <andersen@codepoet.org> | Mon Mar 19 19:40:43 2001 +0000 |
committer | Eric Andersen <andersen@codepoet.org> | Mon Mar 19 19:40:43 2001 +0000 |
tree | 40e85453e966d85dadd037dc78b0d1cae0f989b7 | |
parent | 2ccfef2004675cc6cb18b9cdad1ebdaf892a10c2 [diff] [blame] |
Simpify detection of no options.
diff --git a/coreutils/rm.c b/coreutils/rm.c index a3542aa..768e3ca 100644 --- a/coreutils/rm.c +++ b/coreutils/rm.c
@@ -112,7 +112,7 @@ } } - if ((argc-optind) < 1 && forceFlag == FALSE) { + if (argc == optind && forceFlag == FALSE) { show_usage(); } #ifdef BB_FEATURE_RM_INTERACTIVE