lovelypengpeng 发表于 2004-3-25 15:02:33

脚本文件这句是什么意思? #!/usr/bin/bash

是什么意思?

飘雪心辰 发表于 2004-3-25 20:48:05

它表明以下的脚本语句用/usr/bin/bash执行。

lovelypengpeng 发表于 2004-3-26 08:34:18

语法是什么? !什么意思?

njue 发表于 2004-3-29 23:28:56

可以解释为理解代码的规则吗?

ritou 发表于 2004-3-30 09:24:56

Re: 脚本文件这句是什么意思? #!/usr/bin/b

是什么意思?
This is an rule form UNIX command parser (of course, linux follows this rule). It telles the system to use which inteprater to excute the script file. You may have:

#!/usr/bin/bash or #!/usr/bin/tcl, etc...

The grammer is #! + inteprater path and name.
页: [1]
查看完整版本: 脚本文件这句是什么意思? #!/usr/bin/bash