开发者

Ensuring shell script is being executed by BASH (not csh, ksh, sh etc.)

How woul开发者_StackOverflowd you exit-gracefully-upon-entry when invoking a .sh script from anything other than bash?


Make the script executable and prepend:

#!/usr/bin/env bash
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜