| The tilde in your PATH may not be your HOME(disconnect3d.pl) | |
| 247 points by arusekk 2 days ago | 176 comments | |
tl;dr: Using `export PATH="$PATH:~/.local/bin/"` (with quotes) in your shell config doesn't expand `~` to your home directory—instead, it literally adds `./~/.local/bin/` to your PATH, which can be a security risk since binaries placed in that relative path will be executed. The fix is to use `$HOME` instead of `~`. You can audit your setup with `echo "$PATH" | grep -- '~'`. | |
HN Discussion:
| |