(no title)
rav
|
1 year ago
It seems to me that macOS has env -S as well, but the shebang parsing is different. The result is that shebang lines using env -S are portable if they don't contain any quotes or other characters. The reason is that, running env -S 'echo a b c' has the same behavior as running env -S 'echo' 'a' 'b' 'c' - so simple command lines like the one with uv are still portable, regardless of whether the OS splits on space (macOS) or not (Linux).
fjarlq|1 year ago
bas|1 year ago
sangeeth96|1 year ago
The link I posted in my original reply has a good explanation of this behavior. I was the one who asked the question there.