From: Sean Date: Sun, 13 May 2007 19:49:05 GMT Subject: Re: ~ and ^ Message-ID: <20070513154905.36da94e1.seanlkml@sympatico.ca> In-Reply-To: <20070513191350.GB14657@diana.vm.bytemark.co.uk> On Sun, 13 May 2007 21:13:50 +0200 Karl Hasselström wrote: > It seems that ~foo is only expanded to foo's home if there is such a > user. Since all-numeric users probably aren't common, we can probably > get away with it. Someone just mentioned to me that ~# is expanded by Bash if you use the pushd command to keep a directory stack. So ~1 will stop working if you use "pushd". Maybe it'd be more confusing than helpful. On the other hand, there's probably no reason for Git to just give an error message if it receives a properly escaped lone "~", "~#", or "^". Sean