Open zanieb opened 1 week ago
As discussed in https://github.com/astral-sh/uv/issues/8770
If the user provides uv run foo and foo.cmd or foo.ps1 exists we should invoke it unless foo.exe exists.
uv run foo
foo.cmd
foo.ps1
foo.exe
This is a little questionable, i.e., should we apply this to everything in the PATH? Or just the virtual environment Scripts directory?
PATH
Scripts
Or just the virtual environment Scripts directory?
I'd expect this behavior at least from a security perspective.
Also see note in the special handling of cmd.exe and .bat
running batch scripts in this way may be removed in the future and so should not be relied upon.
As discussed in https://github.com/astral-sh/uv/issues/8770
If the user provides
uv run foo
andfoo.cmd
orfoo.ps1
exists we should invoke it unlessfoo.exe
exists.This is a little questionable, i.e., should we apply this to everything in the
PATH
? Or just the virtual environmentScripts
directory?