[PATCH] tar: updated help

Denys Vlasenko vda.linux at googlemail.com
Tue Dec 8 15:47:33 UTC 2020


On Wed, Dec 2, 2020 at 7:53 PM Christophe Vidal
<christophe.vidal.82 at gmail.com> wrote:
>
> Do you prefer this version?

It results in:
...
    -o    Don't restore user:group
    --overwrite    Replace existing files
    -k    Don't replace existing files
    -Z    (De)compress using compress
    -z    (De)compress using gzip
    -J    (De)compress using xz
    -j    (De)compress using bzip2
    --lzma  (De)compress using lzma
    -a    (De)compress based on extension
    -h    Follow symlinks
    -T FILE    File with names to include
    -X FILE    File with glob patterns to exclude
    --exclude PATTERN    Glob pattern to exclude
    --strip-components NUM    NUM of leading components to strip
    --no-recursion    Don't descend in directories
    --to-command COMMAND    Pipe files to COMMAND
    --numeric-owner    Use numeric user:group
    --no-same-permissions    Apply umask on permissions

How about this:

        -o      Don't restore user:group
        -k      Don't replace existing files
        -Z      (De)compress using compress
        -z      (De)compress using gzip
        -J      (De)compress using xz
        -j      (De)compress using bzip2
        --lzma  (De)compress using lzma
        -a      (De)compress based on extension
        -h      Follow symlinks
        -T FILE File with names to include
        -X FILE File with glob patterns to exclude
        --exclude PATTERN       Glob pattern to exclude
        --overwrite             Replace existing files
        --strip-components NUM  NUM of leading components to strip
        --no-recursion          Don't descend in directories
        --numeric-owner         Use numeric user:group
        --no-same-permissions   Don't restore access permissions
        --to-command COMMAND    Pipe files to COMMAND

Applying the variant shown above. Thank you.


More information about the busybox mailing list