Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!cmcl2!harvard!seismo!brl-adm!brl-smoke!smoke!DZOEY@umd2.umd.edu From: DZOEY@umd2.umd.edu (Joe) Newsgroups: net.unix Subject: csh question Message-ID: <673@brl-smoke.ARPA> Date: Thu, 8-May-86 14:33:37 EDT Article-I.D.: brl-smok.673 Posted: Thu May 8 14:33:37 1986 Date-Received: Sun, 11-May-86 02:46:22 EDT Sender: news@brl-smoke.ARPA Lines: 26 Hi, I'm trying to revamp my .login, and part of it is to check to see which terminal type (if any) the system think I'm signing in on. I implement this by a large switch statement. It looks something like. switch ($term) case 'type1': case 'type2': . . . case 'typen: breaksw and then the appropriate code if it matches any one of those. The problem I'm running into is I get a case: Too many labels error. What is the maximum number of labels I can have for a single action? right now, I have about 20, but I could probably cut it down to 5 if I had to. Any help would be appreciated. Thanks, Joe HERMAN@UMD2.UMD.EDU