bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Selecting out of an array


From: Jan Schampera
Subject: Re: Selecting out of an array
Date: Tue, 26 Jan 2010 07:59:16 +0100
User-agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090707)

Jon_R schrieb:

> http://old.nabble.com/file/p27316649/newsh2.sh newsh2.sh 

You have a misunderstanding about select here, I guess.

Select is supposed to display a list of given words and take user input
(index to these words). It more or less is the same as a for loop, it
just doesn't iterate through the words, it lets the user select one of them.

http://bash-hackers.org/wiki/doku.php/syntax/ccmd/user_select

If you want to make more sophisticated menus, consider to use a
dialog(1) or similar: http://mywiki.wooledge.org/BashFAQ/040

Jan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]