>   Why not use the array instead of making it into a single string?
>
> $cmd "${args[@]}"
>
>   Why are you using eval or quotearg.sh? It sounds as if you are
>   making the process more complicated than it need be.

For the examples that I gave, probably it is not necessary.

I'm yet to make a concrete complex example to demonstrate its
usefulness in practice. But I think that it is easy to imagine that
there will be some complex commands that are composed by concatenating
multiple strings to be evaled, in which case this may be useful.

-- 
Regards,
Peng

Reply via email to