Hacker News new | ask | show | jobs
by kzrdude 1913 days ago
The env gop run shebang line is not posix-compliant; posix only requires support for a single argument in the shebang and this one has two arguments (gop run).

</irrelevant unix nerd mumbling>

2 comments

POSIX is thirty three years old.

Can we please consider certain modest improvements?

The latest revision of the POSIX standard is only 4 years old.
And yet it is still all about writing CLI and server daemons, stuck in the early 80's timesharing computing world.
That is an odd comment to put using HTTP onto a process listening to port 443 so it can be stored by way of sending certain bytes to a different process listening to a port.
Except that the application that is able to display and understand what those magical HTTP contents mean isn't part of POSIX.
There is env -S that supports multiple arguments. This was always an extension available in BSD I think, and it is available now in recent versions of GNU's env.
GNU Coreutils env supports the -S option as of v8.30. Ubuntu 18.04 LTS appears to be on v8.28, but 19.04 supports it. (https://stackoverflow.com/q/4303128)

(Also, I didn't think the shebang was specified by POSIX at all? Am I wrong?)