d**c 发帖数: 51 | 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 $@
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. | c*****t 发帖数: 1879 | 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 $@ : 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.
|
|