You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the command name is not a special built-in utility or function, the variable assignments shall be exported for the execution environment of the command and shall not affect the current execution environment except as a side-effect of the expansions performed in step 4.
Existing shells (including C yash but not zsh) seem to allow such a side-effect to affect the current environment. For example:
a=${b=x} no_such_utility
echo a=$a b=$b
This script prints a= b=x.
To support this behavior, the shell has to perform redirections and assignments before forking a subshell.
The text was updated successfully, but these errors were encountered:
POSIX says:
Existing shells (including C yash but not zsh) seem to allow such a side-effect to affect the current environment. For example:
This script prints
a= b=x
.To support this behavior, the shell has to perform redirections and assignments before forking a subshell.
The text was updated successfully, but these errors were encountered: