[PLUG] Resolved: [PLUG] More Scripting Fun!

Randal L. Schwartz merlyn at stonehenge.com
Sun Jun 23 15:08:28 UTC 2002


>>>>> "Jason" == Jason Van Cleve <jason at vancleve.com> writes:

Jason> I think I've found my solution in the evil command--I mean, the eval
Jason> command (or built-in function or whatever it is):

Jason> 	eval $COMMAND $* $COMMAND_SUFFIX

No, this is dangerous.  If $* should expand to something with whitespace,
then you get two or more parameters where you had one before.

eval \$COMMAND \$* $COMMAND_SUFFIX

please.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!



More information about the PLUG mailing list