Hello,
I always thought that closing string in quotes means that bash treats it as program argument. Well, probably not. Can anybody explain me why and how to do this right?
echo huhu | mail '|echo huhu > /tmp/x'
I DON'T want to execute 'echo huhu > /tmp/x', of course.
In fact, I stumbled upon this while debugging some scripts related to mail forwarding. It gives me uneasy feeling when I know that anybody can send me email that can do anything that regular user can...
Thanks!
I always thought that closing string in quotes means that bash treats it as program argument. Well, probably not. Can anybody explain me why and how to do this right?
echo huhu | mail '|echo huhu > /tmp/x'
I DON'T want to execute 'echo huhu > /tmp/x', of course.
In fact, I stumbled upon this while debugging some scripts related to mail forwarding. It gives me uneasy feeling when I know that anybody can send me email that can do anything that regular user can...
Thanks!