Select format
Format:
Select variable name in list
Do
Break
Done
Program:
#! / bin/bash
Echo "What would you want:"
Select var in "I"LOVE"YOU"
Do
Break
Done
Printf "choose:%s\ n" $var
Running result:
Normal selection:
Out-of-range selection:
Conclusion: there is no default processing for select statements. If the selection is out of range, put back the empty character.