Fix argument handling when running external commands.
* src/system.c (xexec): Use sh -c to run the command. This fixed
bug introduced by 7b5e80396 (tar 1.27)
* doc/tar.texi: Fix checkpoint examples: (1) $TAR_FILENAME
is not available when creating archive and (2) --checkpoint
can't be used as abbreviation of --checkpoint-action
This commit is contained in:
@@ -4482,7 +4482,7 @@ command, provided that they are properly escaped, for example:
|
||||
|
||||
@smallexample
|
||||
@kbd{tar -c -f arc.tar \
|
||||
--checkpoint-action='exec=/sbin/cpoint $TAR_FILENAME'}
|
||||
--checkpoint-action='exec=/sbin/cpoint $TAR_CHECKPOINT'}
|
||||
@end smallexample
|
||||
|
||||
@noindent
|
||||
@@ -4737,7 +4737,7 @@ command line of the external command. For example:
|
||||
|
||||
@smallexample
|
||||
$ @kbd{tar -x -f archive.tar \
|
||||
--checkpoint=exec='printf "%04d in %32s\r" $TAR_CHECKPOINT $TAR_ARCHIVE'}
|
||||
--checkpoint-action=exec='printf "%04d in %32s\r" $TAR_CHECKPOINT $TAR_ARCHIVE'}
|
||||
@end smallexample
|
||||
|
||||
@noindent
|
||||
|
||||
Reference in New Issue
Block a user