diff --git a/SC2097.md b/SC2097.md index 3aec01b..d6af7d0 100644 --- a/SC2097.md +++ b/SC2097.md @@ -18,7 +18,7 @@ To prevent setting the variable, this can also be done in a subshell: ### Rationale: -In `name=World cmd "$name"`, `name=World` is passed in as part of the environment to `cmd` (i.e., in the `envp` parameter to [man 2 execve](http://linux.die.net/man/2/execve)). This means that `cmd` and its children will see the parameter, but no other processes will. +In `name=World cmd "$name"`, `name=World` is passed in as part of the environment to `cmd` (i.e., in the `envp` parameter to [execve(2)](http://linux.die.net/man/2/execve)). This means that `cmd` and its children will see the parameter, but no other processes will. However, `"$name"` is not expanded by `cmd`. `"$name"` is expanded by the shell before `cmd` is ever executed, and thus it will not use the new value.