$ *在bash脚本 [英] $* in bash scripting
本文介绍了$ *在bash脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
任何人能告诉我这是什么 $ *
意味着bash脚本编程?
Can anybody tell me what does $*
mean in bash scripting?
我试着在谷歌搜索,但我发现只有约 $ 1,0
, $ 1
等。
I tried to search on google for it, but I found only about $0
, $1
and so on.
所以,如果有一个链接,这是值得欢迎的。
So, if have a link for this, is welcome.
谢谢!
推荐答案
请参阅此页:
http://tldp.org/LDP/abs/html/internalvariables。 HTML#IFSEMPTY
$的*和$ @的行为时,$ IFS是空的依赖
+上的Bash或sh版本正在运行。
因此,不宜依赖于一个脚本这个功能。
The behavior of $* and $@ when $IFS is empty depends + on which Bash or sh version being run. It is therefore inadvisable to depend on this "feature" in a script.
这篇关于$ *在bash脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文