<pre>[ Sorry for breaking the thread, my mail server is down, I'm cut-and-pasting from <a href="http://gmane.org">gmane.org</a> ]<br><br>Martin Pool wrote:<br>> On 7 Aug 2006, Matthieu Moy <Matthieu.Moy <at> <a href="http://imag.fr" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
imag.fr</a>> wrote:<br>>> Hi,<br>>><br>>> I've filed a bug, but it might be worth pinging the list too:<br>>><br>>> <a rel="nofollow" href="https://launchpad.net/products/bzr/+bug/55414" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
https://launchpad.net/products/bzr/+bug/55414</a><br>>><br>>> Branch:<br>>> <a rel="nofollow" href="http://www-verimag.imag.fr/%7Emoy/bzr/bzr/bzr.output-option/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://www-verimag.imag.fr/~moy/bzr/bzr/bzr.output-option/</a><br>>><br>>> 1908: Matthieu Moy 2006-08-06 output as a global option, -o as a short alias<br>>> 1909: Matthieu Moy 2006-08-06 diff -o FILE implemented
<br>>> 1910: Matthieu Moy 2006-08-06 Implemented -o for "bzr cat"<br>>> 1911: Matthieu Moy 2006-08-06 fixed import statements<br>> <br>> Thanks for the contribution. Can you say a bit more about why adding
<br>> <br>> the option is justified? It seems like it's two things:<br><br>Actually, what happened is that I found myself typing<br><br>$ bzr bundle -o file<br><br>and found that there were no -o alias (which is very common for unix commands), so I went and implemened the alias. Afterwards, I thought "while I'm here, let's do it for cat and diff too", but there's no strong need behind this.
<br><br>> 1. Using -o FILE avoids encoding problems caused by sending binaries to<br>> stdout on Windows.<br><br>That's what I understood.<br><br>> But I thought John's approach of marking commands<br>> with the encoding semantics would avoid that?
<br><br>I leave it up to John to say whether the -o is still needed or not.<br><br>> 2. Having a -o option is just useful sometimes?<br><br>Just one remark: bzr should be consistant, so either this -o should be here for cat and diff or it should be removed for bundle IMO (that's indeed the main reason why I implemented it). If --output is removed, it should be deprecated quickly, since there's already one release of bzr which includes it.
<br></pre>Otherwise, writting "foo -o bar" or "foo > bar" is mostly a matter of habit. One argument in favor of -o is that it's usable by people who don't know how to use redirections, but ...<br><br>
-- <br>Matthieu<br>