From d508ff27b13aca0a8d775f46bf1fffacaf2d6ddb Mon Sep 17 00:00:00 2001 From: Jean-Marc Zucconi Date: Thu, 17 Oct 1996 22:13:36 +0000 Subject: The -q option does not require a list of elements: the command 'ar q foo.a' is perfectly valid and eventually creates an empty archive. This is consistent with OSF1 V3.x, SunOS 4.x, ULTRIX 4.x and probably others. --- usr.bin/ar/ar.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/ar') diff --git a/usr.bin/ar/ar.c b/usr.bin/ar/ar.c index e1bde61efa43..e8bde62267a9 100644 --- a/usr.bin/ar/ar.c +++ b/usr.bin/ar/ar.c @@ -205,8 +205,8 @@ main(argc, argv) usage(); } - /* -dmqr require a list of archive elements. */ - if (options & (AR_D|AR_M|AR_Q|AR_R) && !*argv) { + /* -dmr require a list of archive elements. */ + if (options & (AR_D|AR_M|AR_R) && !*argv) { warnx("no archive members specified"); usage(); } -- cgit v1.3