Open dundalek opened 5 years ago
Let's have a file with a name containing spaces:
$ touch "Space Separated.txt"
Current closh tab completion is not ideal.
After doing tab-completion
$ ls Spa<TAB>
We end up with errors:
$ ls Space Separated.txt ls: cannot access 'Space': No such file or directory ls: cannot access 'Separated.txt': No such file or directory
Or with a starting quote
$ ls "Spa<TAB>
It is better but one has to add ending quote to close the string:
$ ls "Space Separated.txt
Bash handles things a better way.
In the first case it escapes the whitespace:
$ ls Space\ Separated.txt
And in the second case it also adds the final quote and the command is ready to be executed right away:
ls "Space Separated.txt"
Let's have a file with a name containing spaces:
Current closh tab completion is not ideal.
Closh
After doing tab-completion
We end up with errors:
Or with a starting quote
It is better but one has to add ending quote to close the string:
Bash
Bash handles things a better way.
In the first case it escapes the whitespace:
And in the second case it also adds the final quote and the command is ready to be executed right away: