Tech article
Don't Put Tilde In Your Path
No preview is available. Read the original article for the full story.
Hacker News | Oct 11, 2026 | arusekk
Automated excerpt
I was playing with the nono agent sandboxing tool and it greeted me with a warning: PATH entries the sandbox can write to: ~/. local/bin/ which looked suspicious. In other words, doing this in your ~/. bashrc or ~/. zshrc: If a word begins with an unquoted tilde character (‘~’), all of the characters up to the first unquoted slash (…) are considered a tilde-prefix. (…) Bash checks each variable assignment for unquoted tilde-prefixes immediately following a ‘:’ or the first ‘=’, and performs tilde expansion in these cases. (…) Note that the unquoted version export PATH=$PATH:~/.
Selected automatically from source text; not independently written or fact-checked. Read the original for full context.