Unverified50% confidenceFactExact time
Invocation paths that do not go through the shell (such as directly using execvp, posix_spawn, or the process-launching functions implemented in many languages' standard libraries) do not trigger tilde expansion, because they do not parse shell syntax.
1
Sources
50%
Confidence
Long-term
Relevance
10/12/2026
First Seen
Sources
Related Entities
Related Claims
UnverifiedShell glob expansion is completed before command execution, so programs like sed see the expanded real paths rather than the original strings containing wildcards.68% similarUnverifiedIn an interactive shell, the expansion of ~ (tilde expansion) is performed by the shell at the lexical level when parsing the command line, occurring before the command is actually executed, and its object is the command-line text rather than the value of an environment variable.68% similarUnverifiedEnvironment variable assignments (such as $env:FOO=bar or export FOO=bar) are only effective in the current Shell process and its child processes, and become invalid when the terminal is closed; to take effect permanently, they need to be written into the Shell startup script (such as .bashrc, .zshrc, $PROFILE) or system environment variables.67% similarUnverifiedThe contents of the PATH environment variable, when read by a system call (such as execvp), do not go through the shell's expansion process, so a ~ in PATH is treated as an ordinary character-based directory.66% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/1012612API
curl https://kongchang.com/api/v1/knowledge/claims/1012612MCP
get_claim(id=1012612)