#!/bin/csh -f

# This script does nothing valuble!

# Check if the argument is there

if ($#argv != 1) then
	echo "usage: $0 xxx"
	exit 1
else
	echo "OK, pid = $$"		# Print the process ID
endif

switch ("$argv[1]")
	case "-1":
		echo "case 1"
		set tmp = `who | grep mr`
		breaksw
	case "two":
		echo "case 2"
	case "three":
		echo "case 3"; breaksw
	case -*:
		echo "starts with a -"
		breaksw
	case +[1-6]A?:
		echo "a +, one digit 1-6, an A, one char"
		breaksw
	default:
		echo default case
endsw

# Check if the variable tmp is set or not

if ($?tmp) then
	echo "tmp = " $tmp
else
	echo "No tmp variable present"
endif

exit 0
