Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bash: tab completion op user input na read statement?

3 views
Skip to first unread message

TomB

unread,
Aug 15, 2008, 9:04:48 AM8/15/08
to
In een bash script is het de bedoeling dat de user geprompt wordt een
directory of file path in te voeren. Hiervoor gebruik ik het read
statement. Is het mogenlijk is om tab completion te voorzien op de
user input?

--
Abort, Retry, Fail?

TomB

unread,
Aug 16, 2008, 7:18:34 AM8/16/08
to

Wie zoekt die vindt...
Uit man bash:

read (...)
-e If the standard input is coming from a terminal, readline (see
READLINE above) is used to obtain the line.

Dus

read -e input

it is.

--
Genetic engineering is man's way of correcting God's hideous mistakes,
like German people.
~ Mr. Garrison

0 new messages