From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10f8a1,7dc5f2ec553eac38,start X-Google-Attributes: gid10f8a1,public X-Google-Thread: 1164f8,7dc5f2ec553eac38,start X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-05-03 12:15:56 PST Newsgroups: comp.sys.dec,vmsnet.alpha Path: bga.com!news.sprintlink.net!hookup!yeshua.marcam.com!MathWorks.Com!news.duke.edu!concert!theo!cardinal.ncsc.org!coats From: coats@cardinal.ncsc.org (Carlie Coats) Subject: OSF1 "uname -r" discrepancy Message-ID: <1994May3.185553.17740@mcnc.org> Followup-To: comp.sys.dec Sender: daemon@mcnc.org (David Daemon) Nntp-Posting-Host: cardinal.ncsc.org Organization: North Carolina Supercomputing Center Date: Tue, 3 May 1994 18:55:53 GMT Xref: bga.com comp.sys.dec:2969 vmsnet.alpha:499 In tailoring scripts to be run portably on multiple platforms (Alpha/OSF1, MIPS/ULTRIX4, SunOS4, SunOS5 (SOlaris 2.x), IRIX4, IRIX5, HP-UX, ...) which all cross-mount the same disks via NFS, I need to be able to evaluate which binary machine architecture I'm on so that I can decide what directory to get the executables from. I've built shell variables which (so far) had described the machine architecture by playing tricks with "uname": setenv BIN `uname -s``uname -r | cut -d. -f1` But now I find that under OSF1 v1.2, "uname -r" gives "1.2", whereas with OSF1 v1.3, "uname -r" gives "V1.3". And v1.2 and v1.3 should certainly be binary-compatible with each other. What gives? Carlie J. Coats, Jr. coats@cardinal.ncsc.org Environmental Programs phone: (919)248-9241 North Carolina Supercomputing Center fax: (919)248-9245 3021 Cornwallis Road P. O. Box 12889 Research Triangle Park, N. C. 27709-2889 USA "My opinions are my own, and I've got *lots* of them!"