Interesting links but joeldick was asking about command completion
I know of no easy way to implement the "like in DOS" behaviour you'd like for bash completion. Maybe someone else does.
But, for the full story, see /etc/bash_completion
It's "just" a script, but that's where bash completion happens and its behaviour is defined.
It's 9400 lines for my version and is very
cryptic to my eye (you'll need to be up to speed on bash awk perl
, to follow it, but if you'd like a different ("improved"), behaviour, this is the place to look, and tweak the code. Make a backup before you begin!
Also remember that there are many different shells you can use: zsh csh ksh
... the list goes on and on. They all offer different features. Maybe try some of them out.