[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: FSFS: Please test r9880 on Windows

From: Benjamin Pflugmann <benjamin-svn-dev_at_pflugmann.de>
Date: 2004-05-27 04:03:13 CEST

On Wed 2004-05-26 at 19:24:11 -0600, D.J. Heap wrote:
> Greg Hudson wrote:
> [snip]
> >
> >
> >That approach is fine. '-' is perhaps not the wisest choice of
> >prefixes, because of its meaning to Unix utilities, so I'll suggest
> >'N'. I'll take care of that.
>
> Thanks! Out of curiosity, what special meaning does '-' have?

It's the common prefix of almost all command line options. If you try
to do an ls on the node aux, you might try

  ls -aux

but remove will interpret that as the options

  "-a", "-u" and "-x"

and give a completely different result than the expected one. In order
to prevent that, usually you can tell a command with "--" that the of
the options is reached, i.e.

  ls -- -aux

So, while there is an easy way to handle such filenames, it's better
to avoid such ambiguities to begin with.

Bye,

        Benjamin.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu May 27 04:04:55 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.