Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Dec 1999 20:10:41 +0100
From:      Marcel Moolenaar <marcel@scc.nl>
To:        Warner Losh <imp@village.org>
Cc:        current@FreeBSD.ORG
Subject:   Re: Broken sh(1): A more specific example
Message-ID:  <38569631.18F7ECA5@scc.nl>
References:  <38564AC3.B7ADD3AE@scc.nl> <199912141850.LAA54339@harmony.village.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?38569631.18F7ECA5>