Date: Tue, 3 Sep 2002 05:50:03 -0700 (PDT) From: Kimura Fuyuki <fuyuki@hadaly.org> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/42356: uudecode -o doesn't work if piped Message-ID: <200209031250.g83Co3oc002244@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/42356; it has been noted by GNATS. From: Kimura Fuyuki <fuyuki@hadaly.org> 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 <dot@dotat.at> wrote: > > Kimura Fuyuki <fuyuki@hadaly.org> wrote: > > > >uudecode -o doesn't work if the output is piped to other programs. > > > >>How-To-Repeat: > > $ uudecode -o /tmp/a.tgz </tmp/a.uue > > $ 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 </tmp/a.uue | tar xvzf - > > 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 <jmallett@xMach.org> MFC after: 2 weeks ---------------------------- -- fuyuki To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200209031250.g83Co3oc002244>