1 ! Copyright (C) 2011 Doug Coleman.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: environment io.standard-paths io.standard-paths.unix
6 { f } [ "" find-in-path ] unit-test
8 "ls" find-in-path { "/bin/ls" "/usr/bin/ls" } member?
12 "/sbin:" "PATH" os-env append "PATH" [
14 { "/bin/ps" "/sbin/ps" "/usr/bin/ps" } member?
19 "ls" find-in-standard-login-path
20 { "/bin/ls" "/usr/bin/ls" } member?