#!/usr/bin/env ksh (( $# == 0 )) && exit 64 (( $# == 1 )) && echo $1 && exit 0 select choice in "$@" do print $choice break done