Warner Losh wrote:
> 
> In message <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]
SCC Internetworking & Databases           http://www.scc.nl/
The FreeBSD project                mailto:[EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to