[PATCH 4 of 4] bash_completion: use -o nospace and manually add " " or "/" to every candidate

Alexis S. L. Carvalho alexis at cecm.usp.br
Fri Jan 27 03:34:31 UTC 2006


Thus spake Thomas Arendsen Hein:
> I don't like the new behaviour, at least in the following situation:

The behaviour that I proposed is essentially "try to complete with path
aliases and directories", which is pretty simple to explain.

The old behaviour was "try to complete with path aliases and directories
that are repositories.  If there are no matches, try regular filename
completion", which sometimes, if you don't know the implementation,
seems a bit magical - not necessarily in a good way.

E.g. if you have a repository in the cwd, the completion will ignore any
other regular directories, which may be somewhat annoying if you wanted
to enter them.

Anyway, I don't feel too strongly about it, and since "-o nospace"
doesn't work with bash 2.05a (I've just found out about this), I'd say
to just drop this patch.

Alexis



More information about the Mercurial mailing list