cool, now that u're the main bash coder greycat and co wont fall like
cannibals over you for using eval
cheers for old code
No one ever said eval is evil, if you're using it solely to consume the
output of a shell builtin functionality specifically designed to produce
eval-safe text.
In fact, greycat's official stance on precisely that can be found here
(and agrees that Chet's example is reasonable and correct):
Opinions differ on whether it's evil to try writing your own text for
eval'ing, since most people doing so seem to get it wrong. But that's
neither here nor there.
--
Eli Schwartz
Arch Linux Bug Wrangler and Trusted User