Skip to content

Commit 7f4d235

Browse files
authored
ar: best-effort extract & delete (#729)
* If extracting or deleting multiple archive members, process all arguments even if some members are not found * This patch follows how binutils version works %ar t test2.a words wordlist.txt.ol %ar -xv test2.a not1 not2 words no entry not1 in archive no entry not2 in archive x - words %ar -dv test2.a test test2 words No member named `test' No member named `test2' d - words
1 parent 5325cb9 commit 7f4d235

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/ar

+2-2
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ for my $file (@ARGV) {
8383
print "d - $name\n" if $opt_v;
8484
}
8585
else {
86-
die "$0: $name: not found in archive\n";
86+
warn "$0: $name: not found in archive\n";
8787
}
8888
}
8989
elsif ($opt_m) {
@@ -150,7 +150,7 @@ for my $file (@ARGV) {
150150
extractMember( $name, $pAr, $opt_v, $opt_o, $opt_u );
151151
}
152152
else {
153-
die "$0: $name: not found in archive\n";
153+
warn "$0: $name: not found in archive\n";
154154
}
155155
}
156156
}

0 commit comments

Comments
 (0)