[BusyBox] tar --exclude option does not work (but exists in --help and config help)

Glenn McGrath bug1 at iinet.net.au
Wed Dec 24 07:18:49 UTC 2003


On Wed, 24 Dec 2003 05:04:02 +0900
Changwoo Ryu <cwryu at debian.org> wrote:

> Package: busybox
> Version: 1.0-pre5
> 
> I checked "Enable -X and --exclude options (exclude files)" from "make
> menuconfig".  After building, "busybox tar --help" displays --exclude
> option.  But that is not supported in real..
> 
>   $ ./busybox tar --help
>   BusyBox v1.00-pre5 (2003.12.23-19:52+0000) multi-call binary
>  
>   Usage: tar -[czxtvO] [--exclude FILE] [-X FILE][-f TARFILE] [-C DIR]
> [FILE(s)] ...
>   $ ./busybox tar -cv --exclude "Makefile*" -f test.tar applets
>   tar: unrecognized option `--exclude'
>   BusyBox v1.00-pre5 (2003.12.23-19:52+0000) multi-call binary
>  
>   Usage: tar -[czxtvO] [--exclude FILE] [-X FILE][-f TARFILE] [-C DIR]
> [FILE(s)] ...
>   $

yes, docs are incorrect, --exclude isnt supported, -X <file> should work
which is the --exclude-from <file> functionality, only short option is
supported.

attached is a patch which adds long options to tar which might be
usefull to some... im not sure about applying it to cvs, it adds a four
hundred bytes, maybe there should be a global configuration option to
enable long options ?

Ill look at fixing the tar docs in a couple of days.



Glenn
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tar_long_options.diff
Type: application/octet-stream
Size: 1474 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20031224/13af1fe7/attachment.obj 


More information about the busybox mailing list