2019-01-09 11:55:18 +01:00
|
|
|
#!/bin/bash
|
|
|
|
# Set PS3 prompt
|
|
|
|
PS3="Enter the space shuttle to get more information : "
|
|
|
|
|
|
|
|
# set shuttle list
|
2019-01-13 18:49:01 +01:00
|
|
|
select shuttle in columbia endeavour challenger discovery atlantis enterprise pathfinder exit
|
2019-01-09 11:55:18 +01:00
|
|
|
do
|
|
|
|
case $shuttle in
|
|
|
|
columbia)
|
|
|
|
echo "--------------"
|
|
|
|
echo "Space Shuttle Columbia was the first spaceworthy space shuttle in NASA's orbital fleet."
|
|
|
|
echo "--------------"
|
|
|
|
;;
|
|
|
|
endeavour)
|
|
|
|
echo "--------------"
|
|
|
|
echo "Space Shuttle Endeavour is one of three currently operational orbiters in the Space Shuttle."
|
|
|
|
echo "--------------"
|
|
|
|
;;
|
|
|
|
challenger)
|
|
|
|
echo "--------------"
|
|
|
|
echo "Space Shuttle Challenger was NASA's second Space Shuttle orbiter to be put into service."
|
|
|
|
echo "--------------"
|
|
|
|
;;
|
|
|
|
discovery)
|
|
|
|
echo "--------------"
|
|
|
|
echo "Discovery became the third operational orbiter, and is now the oldest one in service."
|
|
|
|
echo "--------------"
|
|
|
|
;;
|
|
|
|
atlantis)
|
|
|
|
echo "--------------"
|
|
|
|
echo "Atlantis was the fourth operational shuttle built."
|
|
|
|
echo "--------------"
|
|
|
|
;;
|
|
|
|
enterprise)
|
|
|
|
echo "--------------"
|
|
|
|
echo "Space Shuttle Enterprise was the first Space Shuttle orbiter."
|
|
|
|
echo "--------------"
|
|
|
|
;;
|
|
|
|
pathfinder)
|
|
|
|
echo "--------------"
|
|
|
|
echo "Space Shuttle Orbiter Pathfinder is a Space Shuttle simulator made of steel and wood."
|
|
|
|
echo "--------------"
|
|
|
|
;;
|
2019-01-13 18:49:01 +01:00
|
|
|
exit)
|
|
|
|
echo "Bye!"
|
|
|
|
break
|
|
|
|
;;
|
2019-01-09 11:55:18 +01:00
|
|
|
*)
|
|
|
|
echo "Error: Please try again (select 1..7)!"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|