Unwanted blank after command line <tab> expansion
Karl Auer
kauer at biplane.com.au
Mon Sep 5 20:37:45 UTC 2022
On Mon, 2022-09-05 at 11:58 -0700, MR ZenWiz wrote:
> I still haven't figured out what the complete command is good
> for - nothing I can see that I do on a regular basis.
"complete" is used only for command completion. You do use it on a
regular basis, it is what is completing your command lines for you when
you press TAB :-) But it interacts with readline, which is confusing.
> My big takeaway from this whole discussion is I should read the
> release notes whenever a new bash comes out.
Did you actually find this mentioned in a release note? Noone else cn
remember completions ever behaving other than they do now, at least not
back about 6-8 years, but the specific completion that interests you is
one very small part of it all, so everyone (a renowned authority) could
well have missed it.
If you do decide to go after it, I suggest using compopt with the
nospace and plusdirs options would be a good place to start. You run
compopt to set the options that your completions will use - specific
completions if you stick a command on the end, or all completons if you
don't.
Regards, K.
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au)
http://www.biplane.com.au/kauer
More information about the ubuntu-users
mailing list