bug-gnu-utils
[Top][All Lists]
Advanced

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

Wrong Return Values for Tar


From: What A Man !
Subject: Wrong Return Values for Tar
Date: Thu, 22 Mar 2001 19:16:49 -0600

Tar returns the same return values whether it succeeds or fails.
In perl, tar returns 0 whether it fails or succeeds. It especially is a
problem with a command such as 

system('tar -zxf failure.tar.gz')
print $?

system('tar -zxf success.tar.gz')
print $?

So, if you use a bad tar.gz file for failure.tar.gz and a good tar file
for success.tar.gz above, you will note that either one returns the same
value of 0. Why?

Regards,
--Dennis



reply via email to

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