The previous hashbang did not work on Linux coreutils env because env passes the arguments as single string to node. By adding -S we can make it split the arguments and this works on both GNU coreutils >= 8.30 and BSD env (probably since 2005) used on MacOS.
The previous hashbang did not work on Linux coreutils
env
becauseenv
passes the arguments as single string tonode
. By adding-S
we can make it split the arguments and this works on both GNU coreutils >= 8.30 and BSDenv
(probably since 2005) used on MacOS.Also see https://github.com/privatenumber/tsx/pull/523 and https://unix.stackexchange.com/a/477651.