Bug#659939: pod2man: no exit code & empty files left behind
Dominic Hargreaves
dom at earth.li
Thu Feb 16 20:42:36 UTC 2012
On Wed, Feb 15, 2012 at 06:10:56PM +1100, Dmitry Smirnov wrote:
> pod2man always exit with status 0 even if conversion failed.
>
> Worse, empty files left behind, for example if invoked like
>
> pod2man /dev/null null.1 && echo OK
>
> "OK" will be printed and empty file "null.1" will be created.
>
> Empty file left by Pod::Simple because it create output file before content
> generation. If no content produced, empty file left behind.
>
> On top of this pod2man always exit with status code 0 disregarding
> conversion result.
>
> The attached patch addresses both problems. (Sorry for not making test case
> for this)
Hi Dmitry,
Please could you forward this upstream initially?
https://rt.cpan.org//Dist/Display.html?Queue=podlators
Cheers,
Dominic.
--
Dominic Hargreaves | http://www.larted.org.uk/~dom/
PGP key 5178E2A5 from the.earth.li (keyserver,web,email)
More information about the Perl-maintainers
mailing list