bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sharutils-4.13.3] uudecode does not handle -o option properly


From: Petr Pisar
Subject: [sharutils-4.13.3] uudecode does not handle -o option properly
Date: Mon, 21 Jan 2013 11:12:50 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

Hello,

I got bug report <https://bugzilla.redhat.com/show_bug.cgi?id=901895> where
it's not possible to decode to standard output:

$ echo hello | uuencode hello >hello.uu
$ cat hello.uu 
begin 664 hello
&:&5L;&\*
`
end
$ uudecode -o - hello.uu 
uudecode usage error:
You cannot specify an output file when processing
multiple input files.
uudecode (GNU sharutils) - decode an encoded file - Ver. 4.13.3
USAGE:  uudecode [ -<flag> [<val>] | --<name>[{=| }<val>] ]... [ file ... 
address@hidden test]$ 
$ echo $?
64

First "uudecode -o - hello.uu" counts input files wrongly. There is only one
input with only one encoded file, but it reports there are more input files.

Second the error message does not print new line at the end of usage line.
(After "[ file ...]".)


Also there is another bug: Replacing "-" with "/dev/stdout" leads to differnt
error even if uudecode(1) reads:

    If the output file is specified to be /dev/stdout or  -,
    the  result  will  be written to standard output.

$ uudecode -o /dev/stdout hello.uu
uudecode: /dev/stdout: Permission denied
$ echo $?
8

-- Petr

Attachment: pgpNb3RjkJtnn.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]