Re: Have a method to prevent space from being added after an invalid one-result completion
Nevermind I found a way. The trick is to enable nospace by default and add space manually to only result when result is 1 and is valid. -- konsolebox
Have a method to prevent space from being added after an invalid one-result completion
If I have a completion setup like this: complete -F complete_something something And then get complete_something to assign a single directory-only result to COMPREPLY, I'd like the completion mechanism to not add a space just so the user would know immediately that it isn't a valid completion. I