Date: Thu, 24 Dec 2009 15:14:22 +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: <200912241514.nBOFEePC014386@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jilles 2009-12-24 15:14:22 UTC FreeBSD src repository Modified files: bin/sh main.c var.c Log: SVN rev 200943 on 2009-12-24 15:14:22Z by jilles 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' Revision Changes Path 1.33 +0 -4 src/bin/sh/main.c 1.41 +0 -1 src/bin/sh/var.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912241514.nBOFEePC014386>