#!/bin/bash echo "wmaker-terminal" echo "recommanded location: /usr/X11R6/bin" echo "version 05172k3-c" CHOICE=$1 if [ -z $1 ]; then echo "Syntax" echo "wmaker-terminal -$1" echo "where -$1 is a command-line argument selecting a terminal program" echo "from the following standard list" echo "=====================================" echo " -w wterm" echo " -g gnome-terminal" echo " -a aterm" echo " -e Eterm" echo " -x xterm" echo " -r rxvt" echo "=====================================" echo "Which terminal would you like?" read CHOICE fi case "$CHOICE" in -[wW]) wterm & ;; -[gG]) gnome-terminal & ;; -[aA]) aterm & ;; -[eE]) Eterm & ;; -[xX]) xterm & ;; -[rR]) rxvt & ;; *) echo "No such terminal." echo "You may edit wmaker-terminal to add support for $CHOICE." exit 1 ;; esac