由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - Solaris shell problem, HELP me !!!!
相关主题
在Sun Solaris gcc下,怎样知道一个函数在哪个lib里?g++ problem!!!!
fork(): why both if and else are executed?问个菜鸟问题
GO似乎是目前最难反编译的代码了哪里能找到2005版“Solaris system programming“电子版?
一个VC++的问题一个没想明白的问题
implement a simple regular expression match?pollsys 是干嘛的?
gmail越发难用为毛wildcard之类的search至今不能用?【请教】在Solaris下开发和Linux开发有什么不同? (转载)
这么多SSL证书,到底有什么区别?Transfer elements in a stack to another preserving order
Linux Makefile: How to include cpp files in subfolder for (转载)[合集] Sun真是散财童子型的公司
相关话题的讨论汇总
话题: solaris话题: shell话题: me话题: problem话题: wildcard
进入Programming版参与讨论
1 (共1页)
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.

1 (共1页)
进入Programming版参与讨论
相关主题
[合集] Sun真是散财童子型的公司implement a simple regular expression match?
[合集] 怎样创造一个 segvgmail越发难用为毛wildcard之类的search至今不能用?
[合集] 哪位老大指点一下linux脚本这么多SSL证书,到底有什么区别?
C++ interview programming exerciseLinux Makefile: How to include cpp files in subfolder for (转载)
在Sun Solaris gcc下,怎样知道一个函数在哪个lib里?g++ problem!!!!
fork(): why both if and else are executed?问个菜鸟问题
GO似乎是目前最难反编译的代码了哪里能找到2005版“Solaris system programming“电子版?
一个VC++的问题一个没想明白的问题
相关话题的讨论汇总
话题: solaris话题: shell话题: me话题: problem话题: wildcard