So far I have found some examples of Bash select function usage with logical constructed options or Asterisk one (i.e select s in *). This last one lists all actual directory content.
So I would like to understand the following:
What does
*mean?How could I display another directory content?
(I tried something asopt=$( ls path )andselect s in "$opt[@]", but it fails)
Any related links or examples are welcome.