Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usenet!talon.UCS.ORST.EDU!news.cs.indiana.edu!samsung!uakari.primate.wisc.edu!sdd.hp.com!spool.mu.edu!snorkelwacker.mit.edu!ai-lab!mole.ai.mit.edu!mjo From: mjo@mole.ai.mit.edu (Mike O'Connor) Newsgroups: comp.unix.questions Subject: Environment variable HOSTALIASES Summary: A couple of questions Message-ID: <13609@life.ai.mit.edu> Date: 28 Feb 91 17:05:01 GMT Sender: news@ai.mit.edu Organization: The Internet Lines: 44 Dear comp.unix.questions: On many flavors of BSD 4.3, I can set an environment variable called HOSTALIASES to point to a file. Example (under csh): setenv HOSTALIASES somefile If somefile contains hosts listed in the following way... sim20 wuarchive.wustl.edu uunet uunet.uu.net dr ticsys.tamu.edu mole mole.ai.mit.edu ...then I can abbreviate the full name of the host (the right part) with the abbreviation (the left part). Examples: ftp sim20 will expand to: ftp wuarchive.wustl.edu mail user@uunet will expand to: mail user@uunet.uu.net telnet dr 2000 will expand to: telnet ticsys.tamu.edu 2000 finger @mole will expand to: finger @mole.ai.mit.edu Two questions: 1. I wish to implement this on an IBM PC RT running BSD 4.3. How do I go about doing this? The procedure above doesn't seem to work on this version of BSD 4.3. (It works on HP300s BSD 4.3 and VAX Ultrix 4.0, as far as I can verify.) 2. I'd love to RTFM on the subject, but I have no idea of where to start. Where are the relevant subjects I should "man"? -- Mike O'Connor Internet: mjo@mole.ai.mit.edu UUCP: ...!uunet!mole.ai.mit.edu!mjo Fidonet: Mike O 1:2200/134.0