Re:“Why I develop on Windows”
by galleywest200 on Friday April 28, 2023 @06:50PM
(#35748126)
I thought we were supposed to be using `#!/usr/bin/env python3` and not `#!/bin/python3`?
[ Parent
| on HN ]
Re:“Why I develop on Windows”
by Isognoviastoma on Friday April 28, 2023 @07:09PM
(#35748301)
There are two commands that do work in shebang: /bin/sh and /usr/bin/env. Everything else will break sooner or later: BSDs, Nix, Linux distros with separate /bin and /usr/bin and so on.
Re:“Why I develop on Windows”
by silverwind on Friday April 28, 2023 @06:55PM
(#35748169)
Defintely, `#!/bin/python3` will not work inside venvs, I suppose.
Re:“Why I develop on Windows”
by SAI_Peregrinus on Friday April 28, 2023 @11:12PM
(#35749668)
Or any distro that doesn't put a python3 executable in /bin. Many current distros symlink /bin to /usr/bin, but not all do, and python3 would usually be in /usr/bin. POSIX only requires /usr/bin/env and /bin/sh to exist, every other path you might use in a shebang can be moved around.