logoalt Hacker News

emersionlast Tuesday at 12:02 PM2 repliesview on HN

The following would probably be more portable:

    ///usr/bin/env go run "$0" "$@"; exit
Note, the exit code isn't passed through due to: https://github.com/golang/go/issues/13440

Replies

zahlmanlast Tuesday at 3:45 PM

Does the third leading slash do something?

show 1 reply
incognito124last Tuesday at 12:31 PM

To quote the blog in question:

> How true this is, is a topic I dare not enter.

show 1 reply