From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from vlsi.cs.caltech.edu ([131.215.131.129]) by hawkwind.utcs.toronto.edu with SMTP id <2708>; Thu, 25 Jun 1992 20:25:56 -0400 Received: from klio.cs.caltech.edu by vlsi.cs.caltech.edu (4.1/1.34.1) id AA20589; Thu, 25 Jun 92 17:26:17 PDT Date: Thu, 25 Jun 1992 20:26:17 -0400 From: drazen@vlsi.cs.caltech.edu (D. Borkovic) Message-Id: <9206260026.AA20589@vlsi.cs.caltech.edu> To: rc@hawkwind.utcs.toronto.edu Subject: subshell, interactive, login, etc What do people out there think about this: Every rc sources .rcrc, but before doing this defines certain variable (say $mode) to have certain values depending on the mode. Then you can do in .rcrc: switch ($mode){ case login; . $home/rc/login; case inter; . $home/rc/inter; case inter_login; . $home/rc/inter; . $home/rc/login; } Well, I did not think much about the values (inter_login looks ugly), but I hope you get the idea. Drazen