Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The redirect happens before the command is executed, so if you're trying to read from /etc/passwd, it's already been overwritten. Sponge will buffer the output and write the file after the first command has executed.


Ah, excuse my ignorance.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: