Subject: Re: Returning status from 'tar'
To: Stuart Brooks <stuartb@cat.co.za>
From: Peter Seebach <seebs@plethora.net>
List: netbsd-help
Date: 02/08/2000 11:37:22
In message <000a01bf720a$b4e15950$5e23a8c0@rgb94.cat.co.za>, "Stuart Brooks" wr
ites:
>However with the tar command it always seems to return 0, whether it
>succeeds or not. I have experimented with piping the output of the tar
>through grep to detect errors but is there some easier way of doing things?
>Am I missing something simple?
I think 'tar' may just be naive about return status; it may be figuring that,
since it "successfully" recovered from errors, all is well.
You might try using 'pax' instead. Different interface, nicer program.
-s