diff options
author | jilles <jilles@FreeBSD.org> | 2009-12-24 15:14:22 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2009-12-24 15:14:22 +0000 |
commit | 979a1ef888d4a268658576bcd3793a3a47bb707d (patch) | |
tree | ac09eb24e922c647beec91bfabcc7667760f0fae /sys/boot | |
parent | ab355c0d662d8fd56d0d6d17844eb0e1620d0f30 (diff) | |
download | FreeBSD-src-979a1ef888d4a268658576bcd3793a3a47bb707d.zip FreeBSD-src-979a1ef888d4a268658576bcd3793a3a47bb707d.tar.gz |
sh: Remove setting variables from dotcmd/exportcmd.
It is already done by evalcommand(), unless special-ness has been removed,
in which case variable assignments should not persist. (These are currently
always special builtins, but this will change later: command builtin,
command substitution.)
This also fixes a memory leak when calling . with variable assignments.
Example:
valgrind --leak-check=full sh -c 'x=1 . /dev/null; x=2'
Diffstat (limited to 'sys/boot')
0 files changed, 0 insertions, 0 deletions