in reply to Re^2: How to put email addresses in a variable and send mails via mailx command
in thread How to put email addresses in a variable and send mails via mailx command

but should work just as well:

both versions are vulnerable to shell interpolation

  • Comment on Re^3: How to put email addresses in a variable and send mails via mailx command

Replies are listed 'Best First'.
Re^4: How to put email addresses in a variable and send mails via mailx command
by AnomalousMonk (Archbishop) on Dec 24, 2015 at 22:42 UTC
    both versions are vulnerable to shell interpolation

    How so? Can you please give an example?


    Give a man a fish:  <%-{-{-{-<

        See also open which gives an example as  open(FOO, "|cat -n | expand -4 | lpr")

        perl isn't interpreting all those pipes, just the first one, the rest are given to the shell