* Etienne Champetier <etienne.champet...@free.fr> [09.10.2013 09:09]: > I've read here > http://stackoverflow.com/questions/592620/check-if-a-program-exists-from-a-bash-script > that it's better to use "command -v" or "hash" instead of "which"
interesting, but http://www.cyberciti.biz/faq/unix-linux-shell-find-out-posixcommand-exists-or-not/ says in the comments: "According to The Open Group Base Specifications, `command -v` is not completely portable and `type -P` is not portable either:" i'am even unsure of 'hash', because it's an builtin. And 'which' is also poorly defined: at least i can find the definition for the exitcode under ubuntu 'man which'. i'am lost - any other links for pro or contra? bye, bastian _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel