サクサク読めて、アプリ限定の機能も多数!
Bashスクリプトでコマンドの存在チェックをする時にwhichは使うべきではない。hashかtype使え。POSIX準拠ならcommand -v。
imiwon のブックマーク 2015/05/10 22:44
How can I check if a program exists from a Bash script?[bash]Bashスクリプトでコマンドの存在チェックをする時にwhichは使うべきではない。hashかtype使え。POSIX準拠ならcommand -v。2015/05/10 22:44
このブックマークにはスターがありません。 最初のスターをつけてみよう!
stackoverflow.com2012/10/28
How would I validate that a program exists, in a way that will either return an error and exit, or continue with the script? It seems like it should be easy, but it's been stumping me.
34 人がブックマーク・6 件のコメント
\ コメントが サクサク読める アプリです /
Bashスクリプトでコマンドの存在チェックをする時にwhichは使うべきではない。hashかtype使え。POSIX準拠ならcommand -v。
imiwon のブックマーク 2015/05/10 22:44
このブックマークにはスターがありません。
最初のスターをつけてみよう!
How can I check if a program exists from a Bash script?
stackoverflow.com2012/10/28
How would I validate that a program exists, in a way that will either return an error and exit, or continue with the script? It seems like it should be easy, but it's been stumping me.
34 人がブックマーク・6 件のコメント
\ コメントが サクサク読める アプリです /