Se eseguo il testcomando in bash, testviene avviata l'utilità integrata (valuta l'espressione condizionale):
$ type test
test is a shell builtin
$ type -a test
test is a shell builtin
test is /usr/local/bin/test
test is /usr/bin/test
$
Tuttavia, come visto nell'output di cui type -a testsopra, c'è un'altra testdirectory / usr / local / bin e un'altra ancora nella directory / usr / bin. Come vengono ordinati gli eseguibili, ovvero i comandi integrati sono sempre preferiti e quindi il resto dei comandi dipende dall'ordine della directory nella variabile $ PATH? Inoltre, è possibile modificare l'ordine degli eseguibili avviati, ad es. Se si digita test, viene avviato / usr / bin / test anziché bash-builtin test?
/usr/bin/test -f "$file"...