bash scripting nightmare.

mwoehlke mwoehlke@tibco.com
Thu Aug 10 20:40:00 GMT 2006


Dave Korn wrote:
> On 10 August 2006 20:49, mwoehlke wrote:
> 
> 
>>> [snip examples]
>> It sounds like you want to read up on arrays and "$@" (quotes included).
> 
>> Does that help?
> 
>   I haven't had time to try it yet, but yes, I'm sure that'll do the trick.
> Thanks a bundle for the hints!

Glad to help!

(If you don't need the arrays, you can still be portable, too; I'm 
fairly sure "$@" is required by POSIX which means even most of the 
cruddy shells should support it. At any rate, I know *we* use it in 
portable scripts, and we run into a lot of cruddy shells :-).)

-- 
Matthew
vIMprove your life! Now on version 7!



More information about the Cygwin-talk mailing list