[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-tar] unrecognized option --remove-files?
From: |
Sergey Poznyakoff |
Subject: |
Re: [Bug-tar] unrecognized option --remove-files? |
Date: |
Tue, 06 Sep 2005 10:37:59 +0300 |
Jeff Saretsky <address@hidden> 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