Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

bash behaviour

Status
Not open for further replies.

pupu

ISP
Oct 15, 2002
174
CZ
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!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top