i want to set up a shell script to go through the args passed on it and act accordingly. i thought this would do but apparently not. i get a "switch unexpected" error. while ($1) switch ($1) case foo: blah breaksw case foofoo: blah breaksw endsw shift [$1] end alber chin