From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1020c6,5120b503df4ed78f X-Google-Attributes: gid1020c6,public X-Google-Thread: 11035d,5120b503df4ed78f X-Google-Attributes: gid11035d,public X-Google-Thread: 1012a6,5120b503df4ed78f X-Google-Attributes: gid1012a6,public X-Google-Thread: 1164f8,5120b503df4ed78f X-Google-Attributes: gid1164f8,public X-Google-Thread: 1070f0,5120b503df4ed78f X-Google-Attributes: gid1070f0,public X-Google-Thread: 115614,5120b503df4ed78f X-Google-Attributes: gid115614,public X-Google-Thread: 10b612,5120b503df4ed78f X-Google-Attributes: gid10b612,public From: guy@netapp.com (Guy Harris) Subject: Re: Portable startup files question.. Date: 1995/05/22 Message-ID: <3pqstl$b7j@nova.netapp.com>#1/1 X-Deja-AN: 103109061 distribution: inet references: organization: Network Appliance Corporation newsgroups: comp.unix.solaris,comp.unix.ultrix,comp.unix.admin,comp.unix.shell,comp.unix.aix,comp.sys.sun.admin,comp.sys.dec tim werner wrote: >You can put something like this in your .cshrc, in case your chsh is >csh because not all the machines you log into have tcsh: Also, note that "uname -s" will give you the "name" of the OS, which would presumably let you, for example: > else if ( "$whatos" == 4 ) then > # SunOS or Ultrix > endif distinguish between SunOS 4.x and Ultrix in this case (I rather doubt that "uname -s" on Ultrix says "SunOS"). The way I tend to do it is to first switch on the value of "uname -s" and, if the version number of the OS matters - e.g., in order to distinguish between SunOS 4.x and SunOS 5.x - look at the value of "uname -r".