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

IIRC interpreters can also read their programs from stdin. Try piping a script to bash and see if it works.

(Actually, this is how the `curl install.sh | bash` anti pattern works. )



Independently of what the interpreter can do, it's #! that doesn't pass the file to it.




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

Search: