[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-tar] gtar not handling stdout redirection correctly
From: |
Tuan Doan |
Subject: |
[Bug-tar] gtar not handling stdout redirection correctly |
Date: |
Fri, 4 Nov 2005 17:49:07 -0600 |
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
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
spatial:/tmp[784]> ~/mysrc/gtar -tf
test2.tar.gz; echo $?
:
export/home/tdoan/mysrc/tcnotexe.tcl
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
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] gtar not handling stdout redirection correctly,
Tuan Doan <=