Date: Tue, 20 Apr 2010 22:32:34 +0000 (UTC) From: Jilles Tjoelker <jilles@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/bin/sh main.c var.c Message-ID: <201004202246.o3KMkAGG095072@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jilles 2010-04-20 22:32:34 UTC FreeBSD src repository Modified files: (Branch: RELENG_8) bin/sh main.c var.c Log: SVN rev 206944 on 2010-04-20 22:32:34Z by jilles 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' Revision Changes Path 1.31.2.2 +0 -4 src/bin/sh/main.c 1.39.2.2 +0 -1 src/bin/sh/var.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201004202246.o3KMkAGG095072>