From owner-freebsd-current@FreeBSD.ORG Wed Jul 25 08:47:59 2007 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6AE9016A418; Wed, 25 Jul 2007 08:47:59 +0000 (UTC) (envelope-from ache@nagual.pp.ru) Received: from nagual.pp.ru (nagual.pp.ru [194.87.13.69]) by mx1.freebsd.org (Postfix) with ESMTP id D745513C467; Wed, 25 Jul 2007 08:47:58 +0000 (UTC) (envelope-from ache@nagual.pp.ru) Received: from nagual.pp.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.14.1/8.14.1) with ESMTP id l6P8lucF077165; Wed, 25 Jul 2007 12:47:56 +0400 (MSD) (envelope-from ache@nagual.pp.ru) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nagual.pp.ru; s=default; t=1185353276; bh=9BVzSE1jAnpX2+33nXmWRZyQxp0VEBcU1mNnb9K Wy3Y=; l=1925; h=Received:Date:From:To:Cc:Subject:Message-ID: Mail-Followup-To:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To:User-Agent; b=VaC5dCmpLSEqD2X7caAD XZ3D+WKLTcrTtns/yrN70SGnvI/04mDAH2e9ormJO1pbpbCRzT25JZqwDmGUT8SYcCX aTo/Z6wdCTtgjgRNM3AK1rpF/fZKzpo4ww2EjFymsA1APa1Kj9Y66CCHMVeuaiSduhz 6keE47qSji5rWo1Xk= Received: (from ache@localhost) by nagual.pp.ru (8.14.1/8.14.1/Submit) id l6P8lugv077164; Wed, 25 Jul 2007 12:47:56 +0400 (MSD) (envelope-from ache) Date: Wed, 25 Jul 2007 12:47:56 +0400 From: Andrey Chernov To: "Daniel O'Connor" , sergei@FreeBSD.org, scf@FreeBSD.org Message-ID: <20070725084755.GA75871@nagual.pp.ru> Mail-Followup-To: Andrey Chernov , Daniel O'Connor , sergei@FreeBSD.org, scf@freebsd.org, freebsd-current@FreeBSD.ORG References: <200707251733.12658.doconnor@gsoft.com.au> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="AhhlLboLdkugWU4S" Content-Disposition: inline In-Reply-To: <200707251733.12658.doconnor@gsoft.com.au> User-Agent: Mutt/1.5.16 (2007-06-09) Cc: freebsd-current@FreeBSD.org Subject: Re: zsh oddities with recent -current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jul 2007 08:47:59 -0000 --AhhlLboLdkugWU4S Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jul 25, 2007 at 05:33:05PM +0930, Daniel O'Connor wrote: > I updated my -current box (laptop) on the 18th and I have 2 strange=20 > issues with zsh. >=20 > 1) I can't unset environmental variables set before the shell started,=20 > eg.. zsh uses system's putenv() but home-rolled delete from environment=20 (instead of unsetenv()). It clearly violates POSIX since it forbids to mix= =20 putenv/setenv/unsetenv with direct environ manipulations: "Conforming applications are required not to modify environ directly, but= =20 to use only the functions described here to manipulate the process=20 environment as an abstract object. Thus, the implementation of the=20 environment access functions has complete control over the data structure= =20 used to represent the environment (subject to the requirement that environ= =20 be maintained as a list of strings with embedded equal signs for=20 applications that wish to scan the environment). This constraint allows=20 the implementation to properly manage the memory it allocates, either by=20 using allocated storage for all variables (copying them on the first=20 invocation of setenv() or unsetenv()), or keeping track of which strings=20 are currently in allocated space and which are not, via a separate table=20 or some other means." Quick fix will be just to disable HAVE_PUTENV config option. It gains=20 nothing in the code but makes troubles. --=20 http://ache.pp.ru/ --AhhlLboLdkugWU4S Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFGpw47Vg5YK5ZEdN0RAgqTAKCDzLpnu6bRVhuPr4FSb9eH9pxVpgCeIWcc Nqq3g83PVR7wmPNnDzPoqdw= =pcfA -----END PGP SIGNATURE----- --AhhlLboLdkugWU4S--