From owner-freebsd-hackers Thu May 1 07:36:46 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id HAA27027 for hackers-outgoing; Thu, 1 May 1997 07:36:46 -0700 (PDT) Received: from who.cdrom.com (who.cdrom.com [204.216.27.3]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id HAA27009 for ; Thu, 1 May 1997 07:36:43 -0700 (PDT) Received: from odin.INS.CWRU.Edu (odin.INS.CWRU.Edu [129.22.8.102]) by who.cdrom.com (8.8.5/8.6.11) with ESMTP id GAA11858 for ; Thu, 1 May 1997 06:33:47 -0700 (PDT) Received: (chet@localhost) by odin.INS.CWRU.Edu (8.7.6+cwru/CWRU-2.3-ins) id JAA06988; Thu, 1 May 1997 09:33:35 -0400 (EDT) (from chet) Date: Thu, 1 May 1997 09:32:30 -0400 From: Chet Ramey To: andrew@erlenstar.demon.co.uk Subject: Re: /bin/sh -c and ENV Cc: hackers@freebsd.org Reply-To: chet@po.CWRU.Edu In-Reply-To: Message from andrew@erlenstar.demon.co.uk of 01 May 1997 06:23:19 +0100 (id <87rafr6a0o.fsf@erlenstar.demon.co.uk>) Message-ID: <9705011332.AA06946.SM@odin.INS.CWRU.Edu> Read-Receipt-To: chet@po.CWRU.Edu MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > Running RELENG-2.2 as of a few days ago. > > Just noticed that /bin/sh is executing the ENV file even when invoked with > the -c option. Is this a bug or a feature? :-) It's a bug. A post-publication POSIX.2 interpretation made it clear that ENV should be executed only for interactive shells. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer Chet Ramey, Case Western Reserve University Internet: chet@po.CWRU.Edu