On one of my computers cd ~ (cd tilde) has stopped working. It says the desired path can not be found.

Any idea what could cause this? I need it for git. (it does work in Git Bash though)

link|improve this question

62% accept rate
feedback

2 Answers

up vote 3 down vote accepted

cd ~ won't work in cmd.exe (unless you have a directory named "~" - the equivalent in cmd.exe is just plain old cd.

Cygwin (and possibly other implementations of) bash does correctly resolve this. Are you not running this command in bash?

cd ~ may work in Powershell, though (different from cmd.exe)... haven't tried...

link|improve this answer
I forgot I had cygwin running on the other machine where it just worked :) Thanks – Thomaschaaf Jan 7 at 18:46
cd ~ works in PowerShell. – KovBal Jan 7 at 18:52
feedback

Are you using the classic windows command prompt or windows power shell? It should work in the later but not in the former.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.