Filename expansion (Re: hg add with special file names)
bulb at ucw.cz
Fri Sep 23 10:24:13 CDT 2005
On Fri, Sep 23, 2005 at 07:42:06 -0700, Bryan O'Sullivan wrote:
> On Fri, 2005-09-23 at 14:48 +0200, Jan Hudec wrote:
> > The default behaviour is broken on Unix and this is a proof. On Unix the
> > shell does the expansion, so programs don't have to.
> Mercurial has more extensive pattern matching support than the shell
> does, so the current behaviour makes sense. Yes, it breaks in rare
> cases, but that's why keyboards have quote keys.
No, it does not. Does it have filetype match? Does it have permission match?
A shell does (for a suitable values of shell).
That's not a point though. If I want mercurial to expand it, I can still
prepend glob: to it (which will at the same time escape it from the shell, as
it won't match any files). But as a default it's confusing on Unix.
> > There is one more thing -- hg add should say something when passed a
> > file that does not exist
> You mean the way it already does, or something else?
> $ hg add notexist
> notexist: No such file or directory
That's allright. But I based it on the transcript in original post, which
showed no such error, though it probably had the error.
Jan 'Bulb' Hudec <bulb at ucw.cz>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: Digital signature
Url : http://www.selenic.com/pipermail/mercurial/attachments/20050923/6b1c985b/attachment.pgp
More information about the Mercurial