Hacker News new | past | comments | ask | show | jobs | submit login
Multiline Shebang – Rosetta Code (rosettacode.org)
1 point by gurjeet on Aug 26, 2020 | hide | past | favorite | 1 comment



I recently discovered the multi-command shebangs and started using it to develop scripts in Golang. E.g. `//usr/bin/env true; go run `dirname $0`/*.go; exit $?` at the top of my Golang code's `main` package makes it a Golang script.

The multi-line shebangs take it a step further, and am glad this page exists as it documents how to do it in various languages.




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

Search: