From owner-freebsd-current Tue Dec 14 11:10:53 1999 Delivered-To: freebsd-current@freebsd.org Received: from post.mail.nl.demon.net (post-11.mail.nl.demon.net [194.159.73.21]) by hub.freebsd.org (Postfix) with ESMTP id 54B7814DE8 for ; Tue, 14 Dec 1999 11:10:46 -0800 (PST) (envelope-from marcel@scc.nl) Received: from [212.238.132.94] (helo=scones.sup.scc.nl) by post.mail.nl.demon.net with esmtp (Exim 2.12 #1) id 11xxL6-0003Mm-00; Tue, 14 Dec 1999 19:10:24 +0000 Received: from scc.nl (scones.sup.scc.nl [192.168.2.4]) by scones.sup.scc.nl (8.9.3/8.9.3) with ESMTP id UAA64309; Tue, 14 Dec 1999 20:10:41 +0100 (CET) (envelope-from marcel@scc.nl) Message-ID: <38569631.18F7ECA5@scc.nl> Date: Tue, 14 Dec 1999 20:10:41 +0100 From: Marcel Moolenaar Organization: SCC vof X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.2.5 i386) X-Accept-Language: en MIME-Version: 1.0 To: Warner Losh Cc: current@FreeBSD.ORG Subject: Re: Broken sh(1): A more specific example References: <38564AC3.B7ADD3AE@scc.nl> <199912141850.LAA54339@harmony.village.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Warner Losh wrote: > > In message <38564AC3.B7ADD3AE@scc.nl> Marcel Moolenaar writes: > : #!/bin/sh > : PATH=/usr/obj/usr/src/i386/bin:/usr/obj/usr/src/i386/usr/bin:\ > : /usr/obj/usr/src/i386/usr/games:/sbin:/bin:/usr/sbin:/usr/bin:\ > : /usr/games:/usr/local/bin:/usr/X11R6/bin:/home/marcel/bin ls > : ls > > Isn't path not exported, so it is in effect for the first ls, but not > the second? Yes. The normal system default PATH applies to the second ls and it does contain /bin. See my mail about sh's broken caching. -- Marcel Moolenaar mailto:marcel@scc.nl SCC Internetworking & Databases http://www.scc.nl/ The FreeBSD project mailto:marcel@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message