[Python-modules-team] Bug#654690: /usr/bin/rst2html: don't overwrite (non .html files) by default

Jakub Wilk jwilk at debian.org
Fri Mar 15 22:48:33 UTC 2013


Control: forwarded -1 http://sourceforge.net/p/docutils/feature-requests/36/

* Karl Goetz <karl at kgoetz.id.au>, 2012-01-05, 20:54:
>Please require an option before rst2html will overwrite an existing 
>file. I just ran 'rst2html *ipv6*.rst' without realising i had two 
>files containing ipv6 in the name. The second file was turned into 
>html, and its rst contents lost.

One way to avoid such accidents is to use stdin redirects:

$ ls *ipv6*.rst
baripv6.rst  fooipv6.rst

$ rst2html < *ipv6*.rst
bash: *ipv6.rst: ambiguous redirect

(This works in bash, other shells may behave differently.)

But anyway, I forwarded the bug upstream.

-- 
Jakub Wilk



More information about the Python-modules-team mailing list