bash arg completion 

http://enterprise.linux.com/article.pl?sid=05/09/14/2135236&tid=89

bash can complete args from your history using M-TAB (dynamic-complete-history) or alt-TAB

for example, type

$ echo fjdslkfjdslk

then try

$ printf fj M-TAB

in console. if this doesn't work try putting

M-TAB: dynamic-complete-history

in your .inputrc

bash can also complete variable names echo $P TAB TAB

By Anonymous Reader on 2005.09.19