Hello,
The problem exists
in old version 1.13 as well as the latest version 1.15.1
spatial:/tmp[784]> ~/mysrc/gtar
--version
tar (GNU tar) 1.15.1
tar (GNU tar) 1.15.1
spatial:/tmp[781]> ~/mysrc/gtar -czf - ~/mysrc
> test2.tar.gz
/export/home/tdoan/mysrc/gtar: Removing leading `/' from member names
spatial:/tmp[782]> ls -lac test2.tar.gz
-rw-r--r-- 1 tdoan staff 4720640 Nov 4 17:44 test2.tar.gz
/export/home/tdoan/mysrc/gtar: Removing leading `/' from member names
spatial:/tmp[782]> ls -lac test2.tar.gz
-rw-r--r-- 1 tdoan staff 4720640 Nov 4 17:44 test2.tar.gz
spatial:/tmp[784]> ~/mysrc/gtar -tf
test2.tar.gz; echo $?
:
:
export/home/tdoan/mysrc/tcnotexe.tcl
export/home/tdoan/mysrc/gup.c
export/home/tdoan/mysrc/gup.c
gzip: stdin:
decompression OK, trailing garbage ignored
/export/home/tdoan/mysrc/gtar: Child returned status 2
/export/home/tdoan/mysrc/gtar: Error exit delayed from previous errors
2
/export/home/tdoan/mysrc/gtar: Child returned status 2
/export/home/tdoan/mysrc/gtar: Error exit delayed from previous errors
2
If not
redirecting stdout when creating the compressed tar file, I do not get the
"trailing gargage ignored"
message.
Is it possible to have the return code to be 0?
Thanks.
_______________________________________________ Bug-tar mailing list Bug-tar@gnu.org http://lists.gnu.org/mailman/listinfo/bug-tar