ssh-copy-id -i ~/.ssh/, then Tab causes filename expansion, which lists all files in
ssh-copy-id without the
-i flag, then Spacebar, Tab doesn't cause file expansion.
ssh-copy-id -x, Spacebard, Tab(note that
-x is an invalid flag) also does not lead to file expansion.
How does Bash "know" to do file expansion after typing
-i? Does the program
ssh-copy-id have to be programmed in a way to let Bash know to do it? I read this page and others on filename expansion but could not find an answer for my question:
GNU bash, version 4.4.20(1)-release (x86_64-pc-linux-gnu)