From owner-cvs-src-old@FreeBSD.ORG Thu Dec 24 15:14:40 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D0AF61065701 for ; Thu, 24 Dec 2009 15:14:40 +0000 (UTC) (envelope-from jilles@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id C00718FC13 for ; Thu, 24 Dec 2009 15:14:40 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id nBOFEeT9014387 for ; Thu, 24 Dec 2009 15:14:40 GMT (envelope-from jilles@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id nBOFEePC014386 for cvs-src-old@freebsd.org; Thu, 24 Dec 2009 15:14:40 GMT (envelope-from jilles@repoman.freebsd.org) Message-Id: <200912241514.nBOFEePC014386@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jilles@repoman.freebsd.org using -f From: Jilles Tjoelker Date: Thu, 24 Dec 2009 15:14:22 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/bin/sh main.c var.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Dec 2009 15:14:40 -0000 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