Top "Tilde-expansion" questions

Tilde expansion is a feature of the POSIX shell providing shortcut access to users' home directories.

How to manually expand a special variable (ex: ~ tilde) in bash

I have a variable in my bash script whose value is something like this: ~/a/b/c Note that it …

bash scripting tilde tilde-expansion
How do I find a user's home directory in Perl?

I need to check whether a file in a user's home directory exists so use file check: if ( -e "~/foo.…

perl home-directory tilde-expansion
Tilde in path doesn't expand to home directory

Say I have a folder called Foo located in /home/user/ (my /home/user also being represented by ~). I want …

bash syntax tilde-expansion
Swift: How to expand a tilde in a path String

How can I expand a path String with a tilde in Swift? I have a string like "~/Desktop" and I'd …

swift path nsfilemanager home-directory tilde-expansion