Path: utzoo!mnetor!tmsoft!torsqnt!lethe!yunexus!ists!helios.physics.utoronto.ca!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!usc!zaphod.mps.ohio-state.edu!sdd.hp.com!news.cs.indiana.edu!news.nd.edu!mentor.cc.purdue.edu!sage.cc.purdue.edu!asg From: asg@sage.cc.purdue.edu (The Grand Master) Newsgroups: comp.unix.internals Subject: Re: TERM and TERMTYPE (wizard level question) Message-ID: <6284@mentor.cc.purdue.edu> Date: 19 Feb 91 17:37:34 GMT References: <22294@hydra.gatech.EDU> <22295@hydra.gatech.EDU> Sender: news@mentor.cc.purdue.edu Reply-To: asg@sage.cc.purdue.edu (The Grand Master) Organization: Purdue University Lines: 32 In article <22295@hydra.gatech.EDU> gt2807a@prism.gatech.EDU (Benjamin H. Cowan) writes: > > I'd like to be able to set my PATH to different paths depending on the >machine type I log into. Is there a TERMTYPE shell variable? If not, >how might one go about figuring out which path to set depending on the >machine type? There are several programs compiled differently to run on >different types of machines and I would like to be able to put the correct >directories where the correct programs according to my machine type could >be found in my PATH. > Yes, there is a variable called TERM - you could do something like if [ $TERM = unknown ] then TERM=`tset - -m unknown:?vt100` fi case $TERM in z29) PATH=z29_path ;; vt100) PATH=vt100_path ;; vt102) PATH=vt102_path ;; wyse50) PATH=wyse50_path ;; *) PATH=default_path ;; esac That should work fine The Grand Master Bruce Varney Brought to you by Super Global Mega Corp .com