in reply to Re^3: 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

both versions are vulnerable to shell interpolation

How so? Can you please give an example?


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

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

Replies are listed 'Best First'.
Re^5: How to put email addresses in a variable and send mails via mailx command
by Anonymous Monk on Dec 24, 2015 at 22:50 UTC
      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