89luca89 / distrobox

Use any linux distribution inside your terminal. Enable both backward and forward compatibility with software and freedom to use whatever distribution you’re more comfortable with. Mirror available at: https://gitlab.com/89luca89/distrobox
https://distrobox.it/
GNU General Public License v3.0
9.86k stars 405 forks source link

[Error] distrobox-enter fails on filenames with multiple spaces #1461

Closed vladrich closed 3 months ago

vladrich commented 3 months ago

Describe the bug

If a command operates on a file with multiple consequent spaces in the name, then it cannot be run with distrobox-enter.

To Reproduce

[~] touch two\ \ spaces.txt
[~] ./distrobox-enter -n <redacted> -- ls two\ \ spaces.txt 
ls: cannot access 'two spaces.txt': No such file or directory
Exit 2

Note that the error message has only one space between two and spaces.

vladrich commented 3 months ago

Thanks! Much appreciated. Dealing with quoting issues in shell scripts is hell...