tar-handles-exclude-and-extract-lists « tar « testsuite - git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
# FEATURE: CONFIG_FEATURE_TAR_FROM
# FEATURE: CONFIG_FEATURE_TAR_CREATE
touch foo bar baz
tar cf foo.tar foo bar baz
echo foo >foo.exclude
rm foo bar baz
busybox tar xf foo.tar foo bar -X foo.exclude
test ! -f foo -a -f bar -a ! -f baz