From owner-freebsd-current@FreeBSD.ORG Fri Jul 13 22:46:09 2007 Return-Path: X-Original-To: freebsd-current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BD0AB16A402; Fri, 13 Jul 2007 22:46:09 +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 37ED113C4B2; Fri, 13 Jul 2007 22:46:09 +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 l6DMk8ni021920; Sat, 14 Jul 2007 02:46:08 +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=1184366768; bh=j16Q0XK0gPcEMqsDl4Sqzbj/jV20Yz7X6AreaUn tYc0=; l=698; 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=lLiumzZD938jyM3Zhr63 fL4LZxrUxqBGMC+tfyJEgQ6K3LquYO1u6+t3ASPlwEtjeBZJ68ur5+PIsTTKDZHVgd5 qW50G491v+Ew68dUmOodd5mtlwaEas+OwkIFd0412Eg307hSTtVrKeCmELyxyRTsHSp x/DNpi5LF33MidsqI= Received: (from ache@localhost) by nagual.pp.ru (8.14.1/8.14.1/Submit) id l6DMk8GP021919; Sat, 14 Jul 2007 02:46:08 +0400 (MSD) (envelope-from ache) Date: Sat, 14 Jul 2007 02:46:08 +0400 From: Andrey Chernov To: "Sean C. Farley" Message-ID: <20070713224608.GB21695@nagual.pp.ru> Mail-Followup-To: Andrey Chernov , "Sean C. Farley" , freebsd-current References: <20070707133102.C14065@thor.farley.org> <20070707191835.GA4368@nagual.pp.ru> <20070707205410.B14065@thor.farley.org> <20070708020940.GA80166@nagual.pp.ru> <20070708171727.GA90490@nagual.pp.ru> <20070713162742.GA16260@nagual.pp.ru> <20070713142545.K26096@thor.farley.org> <20070713202433.GA19856@nagual.pp.ru> <20070713203915.GA20270@nagual.pp.ru> <20070713171942.Q26096@thor.farley.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070713171942.Q26096@thor.farley.org> User-Agent: Mutt/1.5.16 (2007-06-09) Cc: freebsd-current Subject: Re: Environment handling broken in /bin/sh with changes to t,set,put}env() 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: Fri, 13 Jul 2007 22:46:09 -0000 On Fri, Jul 13, 2007 at 05:27:58PM -0500, Sean C. Farley wrote: > Does that mean that environ is untouched or that the environment is > unchanged? They seem to use both words (environ and environment) in the > documentation making me think they are not necessarily the same thing. > Currently, non-getenv() calls rebuilds the environ array if having never > been changed before, but the "environment" is "unchanged" if the > variable does not exist. Should that not meet that requirement? IMHO by the environment they means environ contents, not pointers, because they say: "The setenv() function shall update the list of pointers to which environ points." -- http://ache.pp.ru/