bug-tar
[Top][All Lists]
Advanced

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

[Bug-tar] warning changes return code when using tar -cjf


From: rodolfo gouveia
Subject: [Bug-tar] warning changes return code when using tar -cjf
Date: Tue, 17 Feb 2015 16:09:12 +0000
User-agent: Roundcube Webmail/0.9.5

Hi all,
I discovered that when using tar and compressing with bzip2 like:

 $ tar -cvjf backup.tar.bz2 /backup ; echo $?
 tar: Removing leading `/' from member names
 tar: /backup/alwayschanging.log: file changed as we read it
 1

I get the 1 as the return code when in the documentation [1] says:
Warning messages are output to the standard error and they do not affect the exit code of tar command.
which is correct if I don't use the -j flag for bzip2.
Maybe the documentation should mention this caveat.

cheers,
rodolfo


[1] http://www.gnu.org/software/tar/manual/html_section/tar_27.html






reply via email to

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