On 1/25/21 11:28 AM, Alex fxmbsw7 Ratchev wrote:
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):
https://mywiki.wooledge.org/BashFAQ/048#Examples_of_good_use_of_evalOpinions 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
OpenPGP_signature
Description: OpenPGP digital signature