News for hackers. Stuff that matters.
Re:Uv is the best thing to happen to the Python ecosystem in... by gcr on Wednesday October 29, 2025 @06:18PM (#45753826)
On these systems, wouldn’t binfmt attempt to exec(“/usr/bin/env -S uv run --script”, “foo.py”) and fail anyway for the same reason?
Re:Uv is the best thing to happen to the Python ecosystem in... by pseudalopex on Wednesday October 29, 2025 @11:23PM (#45756104)
Most systems split at least the 1st space since decades.
Re:Uv is the best thing to happen to the Python ecosystem in... by Rogach on Thursday October 30, 2025 @04:11AM (#45757519)
No. The string is split to extract at most one argument. See: https://linux.die.net/man/2/execve

So in fact "-S" is not passed as a separate argument, but as a prefix in the first (and only) argument, and env then extracts it and acts accordingly:

``` $ /usr/bin/env "-S echo deadbeef" deadbeef ```