I wonder why rc still has $path in Plan9.
term% echo $path
. /bin
What happen with Ape ports whom expect the path environment variable? term% echo $path
. /bin
What happen with Ape ports whom expect the path environment variable?Rc's path variable allows you to easily tell rc to check the current directory when looking for programs to exec. Doing that with bind after each cd would be clumsy. And if your working directory is a remote server, you can set path to just /bin so that you aren't statting the remote directory before each exec. Inferno's sh does use a path variable, but it is typically left unset and the default (/dis .) is used.††
† See http://plan9.bell-labs.com/sources/plan9/sys/src/ape/lib/ap/...
†† See /usr/inferno/appl/cmd/sh/sh.b:/^runexternal
Inferno's shell doesn't use a $path variable.