diff options
author | jmz <jmz@FreeBSD.org> | 1996-10-17 22:13:36 +0000 |
---|---|---|
committer | jmz <jmz@FreeBSD.org> | 1996-10-17 22:13:36 +0000 |
commit | 1beee0a9eb8580917a2da4b392e7f4a31cf2ac27 (patch) | |
tree | 5ea1202445b669717ea7d24cf75d6177aa3911a1 /usr.bin/ar | |
parent | 86b518bd61340aa1d08302822920222edc69a07a (diff) | |
download | FreeBSD-src-1beee0a9eb8580917a2da4b392e7f4a31cf2ac27.zip FreeBSD-src-1beee0a9eb8580917a2da4b392e7f4a31cf2ac27.tar.gz |
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.
Diffstat (limited to 'usr.bin/ar')
-rw-r--r-- | usr.bin/ar/ar.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ar/ar.c b/usr.bin/ar/ar.c index e1bde61..e8bde62 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(); } |