[Semibug] ksh select command
nick at holland-consulting.net
Thu Jan 28 20:47:54 EST 2021
Just gotta share...
Here's a ksh command I didn't know about until last week.
"select" -- a one-line menu command!
PS3="Pick one ->"
select Z in apple boy cat dog; do
gives this output:
Pick one ->3
Obviously, something other than "echo $Z" would go in the body.
PS3 sets the prompt.
So...did all the world except me know about this, or is this a new one for you?
More information about the Semibug