#!/bin/ksh
# shellchooser
PS3="Which shell would you like?"
select ans in ksh sh bash csh exit
do
  if [ "$REPLY" -lt 1 -o "$REPLY" -gt 5 ]; then
    echo "Invalid choice. Program ending. "
    exit 1
  fi
echo "Invoking the $ans shell..."
$ans
done
