I am porting an old shell script to fish and just ran into this nice structure:
---------------------------------
PS3="Choose target: "
select TARGET in option1 option2 option3 quit
do
case $TARGET in
option1)
choice="first";
exec this;
break ;;
option2)
choice="second";
exec that;
break ;;
option3)
choice="third"
exec someother;
break ;;
quit) exit;;
*) echo "\n---------------- WRONG OPTION
----------------" ;;
esac
REPLY=''
done
---------------------------------
Is there anything similar in fish?
TIA
--
Luciano ES
>>
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users