From owner-svn-src-head@FreeBSD.ORG Wed Jul 16 02:40:16 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BEAEFD9B; Wed, 16 Jul 2014 02:40:16 +0000 (UTC) Received: from shxd.cx (unknown [64.201.244.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A2D5420EC; Wed, 16 Jul 2014 02:40:16 +0000 (UTC) Received: from 50-196-156-133-static.hfc.comcastbusiness.net ([50.196.156.133]:50038 helo=THEMADHATTER) by shxd.cx with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.77 (FreeBSD)) (envelope-from ) id 1X72IW-0002tE-5K; Tue, 15 Jul 2014 05:57:32 -0700 From: To: "'Benjamin Kaduk'" , References: <201407150218.s6F2Itj8044531@svn.freebsd.org> <53C56BE9.9050304@FreeBSD.org> <20140715191553.GA31990@dft-labs.eu> <011a01cfa09b$928b4710$b7a1d530$@FreeBSD.org> In-Reply-To: Subject: RE: svn commit: r268641 - head/usr.sbin/service Date: Tue, 15 Jul 2014 19:40:04 -0700 Message-ID: <013701cfa09f$3ffad0c0$bff07240$@FreeBSD.org> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 15.0 Thread-Index: AQHOLaehGAwRwf+WS/ay3he7mLcSrwIdqyYRAXy+1UkB4SBdqgG6S7aCm2sy6VA= Content-Language: en-us Sender: devin@shxd.cx Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18 Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, 'Bryan Drewery' X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jul 2014 02:40:16 -0000 =20 =20 From: Benjamin Kaduk [mailto:bjkfbsd@gmail.com]=20 Sent: Tuesday, July 15, 2014 7:24 PM To: dteske@freebsd.org Cc: Bryan Drewery; svn-src-head@freebsd.org; svn-src-all@freebsd.org; = src-committers@freebsd.org Subject: Re: svn commit: r268641 - head/usr.sbin/service =20 On Tue, Jul 15, 2014 at 10:13 PM, > wrote: Blatting out the environment feels rude and non-UNIXy. UNIX programs can, and should expect at a minimum to be able to interrogate the environment they are running within -- destroying all vestiges of that environment purely for the sake of saying "it's clean" seems counter to the UNIX pathos. =20 =20 I'm not sure I can square this sense of "non-UNIXy" with the = long-standing documented behavior of cron to only set SHELL, PATH, = LOGNAME, and HOME. Surely cron is Unixy... =20 [Devin Teske]=20 Last time I checked, cron did not define the UNIX standard. That is to say, that simply because cron decides to export those exact 4 variables does not mean that all of UNIX should never export any other variable. =20 I define non-UNIXy as chicanery that makes working in a POSIX environment more difficult. In this particular case, the issue is that should I want to find out what type of terminal my *terminal* program is running on, I shouldn't have to fight the system to determine the answer. Rather, the system should (unless it has damn-good reason) freely offer information that divulges what environment the program is running in. =20 I am not making the argument that boot-scripts should have access to every environment variable in the parent namespace, but I am arguing that standard UNIX idioms such as $TERM _should_ be provided (not providing them is imho non-UNIX like). --=20 Devin