Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Create on-the-fly hostname lists for ssh tab completion' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Create on-the-fly hostname lists for ssh tab completion
Authored by: russkey on Dec 06, '10 07:47:55AM
Is there a way to add a list of custom words that the read built-in can then read? For example, i would like to say something like complete -W "alice bob" read; and then when i call up read to get user input, they can type a[TAB] and have it completed to alice. The code above works with read a[TAB] completing but not with the input to the read command itself.

[ Reply to This | # ]