Jeff Saretsky <[EMAIL PROTECTED]> wrote:

> cd ${TARGET}
> TAROPTS="--remove-files --wildcards --wildcards-match-slash --exclude
> ./pkg*"
> TARFILE="filename.tar.bz2"
> tar --create --bzip2 --preserve-permissions "${TAROPTS}"
> --file="${TARGET}/${TARFILE}" ./*
> 
> And this is the output from the script:
> 
> tar: unrecognized option `--remove-files --wildcards
> --wildcards-match-slash --exclude ./pkg*'

It is not related to tar, it is a shell issue. Do not enclose ${TAROPTS}
in quotes:

tar --create --bzip2 --preserve-permissions $TAROPTS ...
 
> Also, nowhere in the info pages does it say whether --wildcards and
> --wildcards-match-slash are defaults, or if their converses are
> defaults.  Could this be clarified?

Yes, the default is '--wildcards --wildcards-match-slash'. I will update
the docs.

Regards,
Sergey


_______________________________________________
Bug-tar mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-tar

Reply via email to