Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
mbreese
21 days ago
|
parent
|
context
|
favorite
| on:
A surprise with how '#!' handles its program argum...
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. )
teo_zero
21 days ago
[–]
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:
(Actually, this is how the `curl install.sh | bash` anti pattern works. )