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.
This commit is contained in:
jmz 1996-10-17 22:13:36 +00:00
parent 0790228172
commit a7f4716057

View File

@ -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();
}