Options order....

Giorgos Keramidas keramida at ceid.upatras.gr
Mon May 7 01:47:37 CDT 2007


On 2007-05-06 22:30, Mathieu Clabaut <mathieu.clabaut at gmail.com> wrote:
> On 5/6/07, Marcin Kasperski <Marcin.Kasperski at softax.com.pl> wrote:
> > Guido Ostkamp napisa?(a):
> > >>> You need to specify the options before the files.
> > >> I already noticed it. The question is: *why*?
> > >
> > > probably because that's pretty much standard for most commands.
> >
> > Well, hard to say what is 'standard', but most unix commands I use allow
> > one to freely mix options and params. For example subversion and cvs
> > work so, both
> > svn ci . -m 'blah'
> > and
> > cvs ci . -m 'bleh'
> > work.
> 
> I may add that the ability of "rm" to freely mix options and params
> save me of big troubles.  I before was used to wrote :
> 
>  rm -rf *.bak
> 
> Which causes big trouble when you inadvertently bump the Return key
> after the star !
> 
> I now every time type
> 
> rm *.bak -rf
> 
> I think it would be a nice addition to mercurial UI if possible.

FWIW, this may work with the GNU version of rm(1), but it fails with all
the other rm(1) implementations I regularly use (on Solaris and BSD).

It's a nice feature, but it's far less portable that I would like it to
be, so I try to avoid it.



More information about the Mercurial mailing list