From owner-freebsd-hackers Thu May 1 13:23:22 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id NAA14010 for hackers-outgoing; Thu, 1 May 1997 13:23:22 -0700 (PDT) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id NAA13992 for ; Thu, 1 May 1997 13:23:17 -0700 (PDT) Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id WAA10256; Thu, 1 May 1997 22:23:15 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.8.5/8.8.5) id WAA01694; Thu, 1 May 1997 22:20:15 +0200 (MET DST) Message-ID: <19970501222015.EJ31428@uriah.heep.sax.de> Date: Thu, 1 May 1997 22:20:15 +0200 From: j@uriah.heep.sax.de (J Wunsch) To: hackers@freebsd.org Cc: chet@po.CWRU.Edu Subject: Re: /bin/sh -c and ENV References: <87rafr6a0o.fsf@erlenstar.demon.co.uk> <9705011332.AA06946.SM@odin.INS.CWRU.Edu> X-Mailer: Mutt 0.60_p2-3,5,8-9 Mime-Version: 1.0 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <9705011332.AA06946.SM@odin.INS.CWRU.Edu>; from Chet Ramey on May 1, 1997 09:32:30 -0400 Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk As Chet Ramey wrote: > It's a bug. A post-publication POSIX.2 interpretation made it clear > that ENV should be executed only for interactive shells. Interesting. (And just braindead the other way round. I wonder why Mr. Korn didn't stick to the commonly used .foorc file, and had to invent this crap instead.) Do you have any reference for it? I notice that ksh93 is the only Bourne-alike shell on my system that doesn't... ah no, zsh doesn't source it either. My bash is probably way too old. I'm not using it except for comparisions. (In case you wonder why i think it's braindead the other way round: setting up something like your favourite $PATH for a remote shell execution is very easy if you're a C-shell user. It's totally impractical or even impossible for Bourne-alike shell users. bash excepted, it has a .bashrc as well.) -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)