Redian新闻
>
Solaris shell problem, HELP me !!!!
avatar
Solaris shell problem, HELP me !!!!# Programming - 葵花宝典
d*c
1
I hope experts here can help me, I am desperate:
I have a script a.sh, a.sh runs an executable b like this:
#!/bin/sh
#... some other stuff
./b [email protected]
when I say a.sh '*' (because I don't want shell to expand * before calling
a.sh), but in b's code, I printf all arguments, it turns out * is still
expanded, how can I preserve this wildcard all the way through a.sh to b?
xiexie le.
avatar
c*t
2
set noglob

【在 d**c 的大作中提到】
: I hope experts here can help me, I am desperate:
: I have a script a.sh, a.sh runs an executable b like this:
: #!/bin/sh
: #... some other stuff
: ./b [email protected]
: when I say a.sh '*' (because I don't want shell to expand * before calling
: a.sh), but in b's code, I printf all arguments, it turns out * is still
: expanded, how can I preserve this wildcard all the way through a.sh to b?
: xiexie le.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。