AWS CLI one line installer failing when the path to it contains a space (e.g. WSL) #9058
Labels
bug
This issue is a bug.
installation
p3
This is a minor priority issue
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Describe the bug
Hello,
I was attempting to install AWS CLI on WSL (Windows Subsystem for Linux, Debian). The one-liner worked nice until it broke because it couldn't find the installer, and this is the error I got:
./aws/install: 78: /mnt/c/Users/MyFirstName: not found
This was weird, but it made sense since I was installing AWS CLI from `/mnt/c/Users/MyFirstName\ MyLastName' (which is how WSL references the host's file (Windows files).
I'm not sure if that intended behavior, but it looked to me like it was an error case that should be handled, so I thought it might be better to report it anyway.
Regression Issue
Expected Behavior
The install succeeds regardless of whether the path contains spaces.
Current Behavior
The install stops midway.
Reproduction Steps
Put the installer on a path that contains spaces, attempt to install AWS CLI.
Possible Solution
Haven't looked at the code unfortunately, but perhaps better to check the path properly at the beginning.
Additional Information/Context
No response
CLI version used
aws-cli/2.19.1 Python/3.12.6
Environment details (OS name and version, etc.)
Linux/5.15.153.1-microsoft-standard-WSL2 exe/x86_64.debian.12
The text was updated successfully, but these errors were encountered: