From owner-freebsd-bugs Tue Sep 3 5:50:10 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 D59ED37B400 for ; Tue, 3 Sep 2002 05:50:04 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8F3C043E3B for ; Tue, 3 Sep 2002 05:50:04 -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 g83Co4JU002245 for ; Tue, 3 Sep 2002 05:50: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 g83Co3oc002244; Tue, 3 Sep 2002 05:50:03 -0700 (PDT) Date: Tue, 3 Sep 2002 05:50:03 -0700 (PDT) Message-Id: <200209031250.g83Co3oc002244@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Kimura Fuyuki Subject: Re: bin/42356: uudecode -o doesn't work if piped Reply-To: Kimura Fuyuki 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: Kimura Fuyuki To: dot@dotat.at Cc: FreeBSD-gnats-submit@FreeBSD.org Subject: Re: bin/42356: uudecode -o doesn't work if piped Date: Tue, 03 Sep 2002 21:42:43 +0900 At Tue, 03 Sep 2002 10:55:51 +0100, Tony Finch wrote: > > 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? It would make standards@ people unhappy. Commit log says as follows: ---------------------------- revision 1.18 date: 2002/02/16 09:18:33; author: mike; state: Exp; lines: +0 -1 Un-deprecate the -p option. We now have two ways to output to stdout: `-o /dev/stdout' or `-p'. Requested by: grog, nectar ---------------------------- revision 1.17 date: 2002/01/27 18:21:23; author: mike; state: Exp; lines: +26 -3 Add -o option (POSIX.1-2001) to uudecode(1). Deprecate the -p option (which allows one to redirect output to stdout); `-o /dev/stdout' is recommended instead. Submitted by: Joseph Mallett MFC after: 2 weeks ---------------------------- -- fuyuki To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message