jilles e8cd22ad02 MFC r200943: 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 may 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'
2010-04-20 22:32:34 +00:00
..
2009-06-23 23:30:56 +00:00
2010-01-30 14:47:23 +00:00
2010-02-16 22:19:55 +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
2010-01-30 14:51:24 +00:00
2009-06-23 23:30:56 +00:00
2010-03-04 07:08:01 +00:00
2010-02-28 14:04:20 +00:00
2006-12-27 11:28:00 +00:00
2010-01-30 14:56:13 +00:00
2010-01-04 01:08:27 +00:00
2010-02-18 10:46:25 +00:00
2010-03-19 10:25:59 +00:00
2006-12-27 12:14:56 +00:00
2010-01-30 15:53:32 +00:00
2005-08-07 09:11:38 +00:00