opensuse v13.2
bash 4.2.53
Bash directory name completion is different in 13.2, and not in a good way. There is something unusual about the alii for “ls”.
In .bashrc:
LS_OPTIONS="--literal --color --tabsize=0 --classify"
alias ls="/bin/ls `echo $LS_OPTIONS`"
alias del="rm"
alias ll="ls -lh"
When I enter a partial directory name and hit TAB, I expect the directory name to be completed. Because I have ‘–classify’, the name has a trailing “/”. I like it like that. Now, though, sometimes it does not do that; instead it puts a space after the name rather than the slash, or removes backslashes and quotes.
If I type (<TAB> is the TAB key to auto-complete)
ll 1\ r<TAB>
I get
ll 1 rk forms-front folder
instead of
ll 1\ rk\ forms-front\ folder/
If, however I type
/bin/ls --literal --color --tabsize=0 --classify 1\ r<TAB>
I get
/bin/ls --literal --color --tabsize=0 --classify 1\ rk\ forms-front\ folder/
Also, if I do this:
ll “1 rk forms-front folder”<ENTER>
it works as expected, directory listing.
If I do this instead:
ll “1 rk forms-front folder”<TAB>
I get
ll 1 rk forms-front folder
If I type:
/bin/ls --literal --color --tabsize=0 --classify “1 rk forms-front folder”<TAB>
I get
/bin/ls --literal --color --tabsize=0 --classify 1\ rk\ forms-front\ folder/
I do not understand why there is a difference.
Or how to correct it.