Path: utzoo!dptcdc!jarvis.csri.toronto.edu!mailrus!purdue!haven!adm!xadmx!Kemp@DOCKMASTER.NCSC.MIL From: Kemp@DOCKMASTER.NCSC.MIL Newsgroups: comp.unix.wizards Subject: Re: generating code to run multiple targets Message-ID: <19190@adm.BRL.MIL> Date: 19 Apr 89 03:00:12 GMT Sender: news@adm.BRL.MIL Lines: 22 > Tcsh added two environment variables, HOST and HOSTTYPE. . . . From the SunOS manpage MACHID(1): "The following commands will return a true value (exit code of 0) if you are on a processor that the command name indicates. sun, iapx286, i386, m68k, pdp11, sparc, u3b, u3b2, u3b5, u3b15, vax The commands that do not apply will return a false (non-zero) value. These commands are often used within make(1) makefiles and shell procedures to increase portability. SEE ALSO arch(1), mach(1), make(1), sh(1), test(1V), true(1)" The list of processors implies that this is not a Sun-ism, but comes with standard BSD 4.x. What have I been missing from this discussion??? Dave Kemp