As I understand it, ~+ means the same thing as "the current working directory".
So echo ~+ should print the same as pwd.
What is the purpose of this tilde expansion ~+ ?
It's there for completeness.
You could use it as a shorter form of $PWD. You save a whole two keystrokes!
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
2 years ago