[KongchangAI]
Conceptexecvp系统调用

execvp

A process execution system call function in Unix/Linux systems, used to replace the current process image and execute a new program. It reads the PATH environment variable to locate executables but does not perform shell expansion.

Timeline (last 90 days)

Oct 12

The 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.

Unverified50%
Oct 12

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.

Unverified50%

All Facts (2)

Source Articles