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

That’s not so terrible if you at least verify the output before the final “| sh”.

Though you’d have to be confident that running it twice is going to give the same results. If it’s remote data that could change then weird/bad/nasty things could happen.

For anything non trivial, best to separate those steps and generate a temp script to execute.



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

Search: