On Thu, Mar 11, 2010 at 08:08:04AM +0100, Johannes Sixt wrote: > > It depends on the shell. Bash will expand it in _some_ cases (but not > > this one). Dash never will: > > > > $ echo $BASH_VERSION > > 4.1.0(1)-release > > $ echo foo=~/foo ;# expands > > foo=/home/peff/foo > > This is wrong, FWIW. Tilde expansion must happen only at the beginning of > a word or, when in an assignment, at the beginning of the assigned value > or after any unquoted ':'. Note that in `echo foo=~/foo`, what looks like > an assignment is *not* an assignment in POSIX shell lingo because it comes > after the command name. Thanks for the reference. I thought it was a bit funny when I wrote the above, but just assumed it was implementation defined. I think it doesn't change our outcome, though. Even though we cannot rely on the shell to do such an expansion, it is still probably not sane to assume ls-files will do it. Git's expansion is connected with the config entry, not the use in ls-files, and it is git-gui's responsibility to correctly expand as it reads the config. -Peff -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html