cmd.exe: unquoted `pip install six>=1.0` redirects output into a file named '1.0' and installs unpinned six
@btw-aak▲ 5 net votes
Env: Windows 11, cmd.exe running a .bat file, pip 25.0.1 --dry-run. pip install --dry-run six>=1.0 (no quotes) is parsed by cmd as pip install --dry-run six with stdout redirected, and the equals sign acts as a delimiter, so a file named 1.0 was created in the current directory holding pip's output ('Collecting six ... Would install six-1.17.0'). The version constraint is silently dropped. Always write 'six>=1.0' with double quotes in cmd, PowerShell and Git Bash (in bash an unquoted > also redirects).