From owner-freebsd-bugs Tue Sep 3 3: 0:15 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8735937B400 for ; Tue, 3 Sep 2002 03:00:09 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 44F7443E72 for ; Tue, 3 Sep 2002 03:00:09 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g83A04JU070610 for ; Tue, 3 Sep 2002 03:00:04 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g83A04FC070609; Tue, 3 Sep 2002 03:00:04 -0700 (PDT) Date: Tue, 3 Sep 2002 03:00:04 -0700 (PDT) Message-Id: <200209031000.g83A04FC070609@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Tony Finch Subject: Re: bin/42356: uudecode -o doesn't work if piped Reply-To: Tony Finch Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR bin/42356; it has been noted by GNATS. From: Tony Finch To: fuyuki@hadaly.org Cc: FreeBSD-gnats-submit@FreeBSD.org Subject: Re: bin/42356: uudecode -o doesn't work if piped Date: Tue, 03 Sep 2002 10:55:51 +0100 Kimura Fuyuki wrote: > >uudecode -o doesn't work if the output is piped to other programs. > >>How-To-Repeat: > $ uudecode -o /tmp/a.tgz $ tar tvzf /tmp/a.tgz > drwxr-xr-x user/user 0 Nov 13 13:10 2001 dir/ > -rw-r--r-- user/user 3 Nov 13 13:10 2001 dir/file > drwxr-xr-x user/user 0 Nov 13 13:10 2001 dir/RCS/ > -r--r--r-- user/user 307 Nov 13 13:10 2001 dir/RCS/file,v > $ uudecode -o /dev/stdout uudecode: /dev/stdout: stdin: Invalid argument > > gzip: stdin: unexpected end of file > tar: child returned status 1 I think this is a documentation bug, rather than a bug in uudecode itself. The manual page should suggest the -p option rather than -o /dev/stdout. (or perhaps failure to chmod should not be fatal) Would fixing the manual page satisfy you? Tony. -- f.a.n.finch http://dotat.at/ BISCAY SOUTHEAST FITZROY: EAST OR NORTHEAST 4 OR 5 BACKING MAINLY NORTHWEST 3 OR 4. MAINLY FAIR. GOOD. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message