Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!sol.ctr.columbia.edu!emory!gatech!prism!mailer.cc.fsu.edu!uflorida!kluge!serss0.fiu.edu From: acmfiu@serss0.fiu.edu (ACMFIU) Newsgroups: comp.unix.shell Subject: command line args Message-ID: <2063@kluge.fiu.edu> Date: 26 Jan 91 11:52:29 GMT Sender: news@kluge.fiu.edu Organization: Florida International University, Miami Lines: 19 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