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.
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.