[docutils:feature-requests] #36 prevent accidential file overwrites by wildcard expansion
Günter Milde via Docutils-develop <[email protected]> Thu, 11 Jun 2026 08:29:26 -0000
| Newsgroups | gmane.text.docutils.devel |
|---|---|
| Message-ID | </p/docutils/feature-requests/36/5544dca8ad965d72fc98487c42d00904b7b3733f.feature-requests@docutils.p.sourceforge.net> |
This is a multi-part message in MIME format. --===============2622814619138963897== Content-Type: multipart/related; boundary="===============0460364144409090695==" This is a multi-part message in MIME format. --===============0460364144409090695== Content-Type: multipart/alternative; boundary="===============6907922349117858133==" MIME-Version: 1.0 --===============6907922349117858133== MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit - **status**: pending --> open-fixed - **Comment**: The second positional argument for the destination is dropped in [r10348] . Now, more than one positional argument will result in an error. Use the `--output` and `-o` options or output redirection (`>`) to specify an output file. --- **[feature-requests:#36] prevent accidential file overwrites by wildcard expansion** **Status:** open-fixed **Group:** Default **Created:** Fri Mar 15, 2013 10:43 PM UTC by Jakub Wilk **Last Updated:** Tue Apr 29, 2025 07:47 PM UTC **Owner:** nobody A Debian user complained that if you use a wildcard as input file name, and the wildcard unexpectedly expands to two names, then rst2html will overwrite your files: http://bugs.debian.org/654690 Would if be possible to add an option for not overwriting output files, that you could add to your configuration file, and later override from command line if needed? --- Sent from sourceforge.net because [email protected] is subscribed to https://sourceforge.net/p/docutils/feature-requests/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/feature-requests/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. --===============6907922349117858133== MIME-Version: 1.0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: 7bit <div class="markdown_content"><ul> <li><strong>status</strong>: pending --> open-fixed</li> <li><strong>Comment</strong>:</li> </ul> <p>The second positional argument for the destination is dropped in <a class="alink" href="https://sourceforge.net/p/docutils/code/10348/">[r10348]</a> . Now, more than one positional argument will result in an error.<br/> Use the <code>--output</code> and <code>-o</code> options or output redirection (<code>&gt;</code>) to specify an output file.</p> <hr/> <p><strong><a class="alink" href="https://sourceforge.net/p/docutils/feature-requests/36/">[feature-requests:#36]</a> prevent accidential file overwrites by wildcard expansion</strong></p> <p><strong>Status:</strong> open-fixed<br/> <strong>Group:</strong> Default<br/> <strong>Created:</strong> Fri Mar 15, 2013 10:43 PM UTC by Jakub Wilk<br/> <strong>Last Updated:</strong> Tue Apr 29, 2025 07:47 PM UTC<br/> <strong>Owner:</strong> nobody</p> <p>A Debian user complained that if you use a wildcard as input file name, and the wildcard unexpectedly expands to two names, then rst2html will overwrite your files:<br/> <a href="http://bugs.debian.org/654690" rel="nofollow">http://bugs.debian.org/654690</a></p> <p>Would if be possible to add an option for not overwriting output files, that you could add to your configuration file, and later override from command line if needed?</p> <hr/> <p>Sent from sourceforge.net because [email protected] is subscribed to <a href="https://sourceforge.net/p/docutils/feature-requests/">https://sourceforge.net/p/docutils/feature-requests/</a></p> <p>To unsubscribe from further messages, a project admin can change settings at <a href="https://sourceforge.net/p/docutils/admin/feature-requests/options.">https://sourceforge.net/p/docutils/admin/feature-requests/options.</a> Or, if this is a mailing list, you can unsubscribe from the mailing list.</p></div> --===============6907922349117858133==-- --===============0460364144409090695==-- --===============2622814619138963897== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============2622814619138963897== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline