Comment

Comment by ciprian_craciun

I'm glad someone finally wrote about this issue.

I have also stumbled upon this a few years ago, but I blamed myself (for using an editor that saves in place), and just applied the following "workaround" when needed: wrap the whole script in a function, and as the last line of the script just call it with `_main "${@}"`.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton