bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: converting array to string by quoting each element for eval


From: Peng Yu
Subject: Re: converting array to string by quoting each element for eval
Date: Tue, 15 Nov 2011 17:02:29 -0600

>   Why not use the array instead of making it into a single string?
>
> $cmd "address@hidden"
>
>   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

[Prev in Thread] Current Thread [Next in Thread]