Skip to content

env.bat fails when PATH contains quotes #1493

@XcantloadX

Description

@XcantloadX
C:\Users\dev\Desktop\Winpython64-3.12.9.0dot\WPy64-31290>echo %PATH%
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;d:\aa";C:\Users\dev\AppData\Local\Microsoft\WindowsApps;

C:\Users\dev\Desktop\Winpython64-3.12.9.0dot\WPy64-31290>call C:\Users\dev\Desktop\Winpython64-3.12.9.0dot\WPy64-31290\scripts\env.bat
";C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;d:\aa";C:\Users\dev\AppData\Local\Microsoft\WindowsApps;;" | C:\Windows\system32\find.exe /C /I ";C:\Users\dev\Desktop\Winpython64-3.12.9.0dot\WPy64-31290\python\;" >nul

C:\Users\dev\Desktop\Winpython64-3.12.9.0dot\WPy64-31290>where python.exe
信息: 用提供的模式无法找到文件。
(Translated by Google: INFO: Unable to find file with the pattern provided.)

C:\Users\dev\Desktop\Winpython64-3.12.9.0dot\WPy64-31290>python
'python' 不是内部或外部命令,也不是可运行的程序或批处理文件。
(Translated by Google: 'python' is not recognized as an internal or external command, operable program or batch file.)

C:\Users\dev\Desktop\Winpython64-3.12.9.0dot\WPy64-31290>

It's ridiculous to have quotes in PATH, but this indeed happened on some user's computer of my software.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions