Jilles Tjoelker 16d8c5ec5d 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'
2009-12-24 15:14:22 +00:00
..
2009-10-15 18:17:29 +00:00
2009-06-23 23:30:56 +00:00
2009-10-17 15:53:15 +00:00
2009-01-30 16:23:57 +00:00
2009-06-23 23:30:56 +00:00
2006-12-18 15:45:01 +00:00
2007-03-04 19:52:07 +00:00
2009-11-02 12:35:38 +00:00
2009-06-23 23:30:56 +00:00
2007-03-04 09:15:12 +00:00
2006-12-27 11:28:00 +00:00
2009-09-04 21:49:37 +00:00
2009-12-21 19:18:27 +00:00
2009-11-17 07:29:35 +00:00
2006-12-27 12:14:56 +00:00
2009-09-07 16:19:32 +00:00
2005-08-07 09:11:38 +00:00
2009-10-15 18:17:29 +00:00