summaryrefslogtreecommitdiffhomepage
path: root/tests/zash/select.exp
blob: 3c8f426c771bee6fa68c750a3f1637010f69b5b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
pick [beta] [2]
--- menu and prompt, on stderr
1 alpha
2 beta
#? 
--- out of range and not a number
pick [] [9]
pick [] [beta]
--- after the loop, the variable keeps the last pick
last [beta]
--- a blank line only prompts again
ran [alpha]
--- no in list means the parameters
param [one]
--- PS3 is the prompt
1 alpha
2 beta
which? 
--- end of input ends the loop
status 0
--- continue shows the menu again
pass [alpha]
pass [beta]
[status 0]