Why use $HOME over ~ (tilde) in a shell script? August 7, 2023 by Tarik Tilde expansion doesn’t work in some situations, like in the middle of strings like /foo/bar:~/baz