|
From: | Benibr |
Subject: | [Help-tar] Exitcodes when creating archives |
Date: | Mon, 11 May 2015 21:02:11 +0200 |
User-agent: | Roundcube Webmail/0.9.5 |
Hi,my company is maintaining an patched version of tar because some scripts expect an exitcode 0 even if the archived files change while creating the tar file. I read the tar manual [1] and figured out, that an exitcode 1 should be uncritical while creating an archive since tar 1.19. I also read the (patched) sourcecode and didn't find any part which says something else. However I couln't figure out how to proof that.
So the question is: can I be absolutly sure that an exitcode 1 is only thrown when a file changes while creating the archive? A possible command would be "tar --numeric-owner --listed-incremental -cpPf"
Thanks & Regards, Benibr [1] http://man7.org/linux/man-pages/man1/tar.1.html#RETURN_VALUE
[Prev in Thread] | Current Thread | [Next in Thread] |