bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-tar] Allow tar to use command for compressing consisiting of mu


From: Sergey Poznyakoff
Subject: Re: [Bug-tar] Allow tar to use command for compressing consisiting of multiple words.
Date: Sun, 10 Feb 2013 15:21:32 +0300

Pavel Raiskup <address@hidden> ha escrit:

>    In short, there would be nice to allow maintainers to specify something
>    like this:
> 
>      ./configure --with-lzma="xz --format=lzma"

I have pushed the necessary fixes (commit 7b5e8039).  Any option taking
a command name as its argument now accepts a full command line as well.
These options are:

  --checkpoint-action=exec
  -I, --use-compress-program
  -F, --info-script
  --to-command

Thus, one can do "tar -c -I 'gzip -9' .", for example.

The argument is split using almost the same rules as used by the shell
(excepting command substitution and arithmetic expansion).  For the
commands that take additional information from environment variables
created by tar it is now possible to pass these in the command line
as well (escaping them from being expanded prematurely), e.g.:

  tar -x -f a.tar --info-script='changevol $TAR_ARCHIVE $TAR_VOLUME'
        
Regards,
Sergey



reply via email to

[Prev in Thread] Current Thread [Next in Thread]