Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: guy@netapp.com (Guy Harris)
Subject: Re: Portable startup files question..
Date: 1995/05/22	[thread overview]
Message-ID: <3pqstl$b7j@nova.netapp.com> (raw)
In-Reply-To: WERNER.95May21135459@farina.mc.ab.com

tim werner <werner@farina.mc.ab.com> 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".



  reply	other threads:[~1995-05-22  4:00 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-05-21  4:00 Portable startup files question Ricardo Marek
1995-05-21  4:00 ` tim werner
1995-05-22  4:00   ` Guy Harris [this message]
1995-05-21  4:00 ` Uwe Leinberger
1995-05-22  4:00   ` Ido Sarig
1995-05-22  4:00     ` Guy Harris
1995-05-24  4:00     ` Dale DePriest
1995-05-25  4:00       ` Guy Harris
1995-05-26  4:00         ` Thanh Ma
1995-05-26  4:00           ` Guy Harris
1995-06-02  4:00     ` Christopher Samuel
1995-05-23  4:00 ` Larry Gale
1995-05-26  4:00 ` Syed Zaeem Hosain
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox