Re: BUG: Git path --config doesn't work with ~ symbol
- From
Jeff King <peff@peff.net>
- Date
- May 5, 2021, 18:35 UTC
- Message-ID
- <YJLla4gNEMS2yxCv@coredump.intra.peff.net>
- In-Reply-To
- <CAEumJaCmcReO4ry7DP14zDg0R5L5QgULZpZmaqBY5g=EQD4U+Q@mail.gmail.com>
On Wed, May 05, 2021 at 09:30:21PM +0300, Theodor Negrescu wrote:
> I'm using powershell, but usually ~ works there. Typing "cd ~" would > work for example. > Also I tried using the command as an alias and it still didn't work.
I don't know anything about powershell, but generally "cd" is a builtin to the shell (because it is impacting the shell's environment). So it may be that powershell "cd" expands "~" itself, but that the shell doesn't expand it for executed commands.
There are some Windows folks who hang out on this list, so you may get a better response. But you might also ask in the Git for Windows mailing list:
https://groups.google.com/g/git-for-windows
-Peff