4 ms·
Wait... your interpreter reads from stdin. Shouldn't it read its first arg, instead?
by teo_zero 11mo ago
Wait... your interpreter reads from stdin. Shouldn't it read its first arg, instead?
- somat 11mo agoI think that was what I was trying to figure out, how the program was passed. but OpenBSD does not do nested interpreters, it looks like if I had tried Linux it would have worked.
- deleted 11mo ago[deleted]
- deleted 11mo ago[deleted]
- mbreese 11mo agoIIRC 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. )
- deleted 11mo ago[deleted]
- teo_zero 11mo agoIndependently of what the interpreter can do, it's #! that doesn't pass the file to it.