From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,8fab9d8c8bc63177,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-09-16 08:39:26 PST Path: bga.com!news.sprintlink.net!howland.reston.ans.net!europa.eng.gtefsd.com!MathWorks.Com!news2.near.net!bloom-beacon.mit.edu!senator-bedfellow.mit.edu!fenris.mit.edu!carter From: carter@bates.mit.edu (Tony Carter) Newsgroups: comp.unix.osf.osf1 Subject: OSF/1 test -h operator Date: 15 Sep 1994 19:57:38 GMT Organization: MIT Bates Linac Sender: carter@fenris.mit.edu (Tony Carter) Distribution: world Message-ID: <35a8vi$lk@senator-bedfellow.MIT.EDU> Reply-To: carter@bates.mit.edu (Tony Carter) NNTP-Posting-Host: fenris.mit.edu Hi, I am trying to port a shell script from SunOS to OSF/1 which is using the Bourne shell. This is not a one time port, but rather an attempt to make the scripts portable. The problem comes during an 'if' statement which uses the -h test condition which should test if a file is a symbolic link. OSF/1's and Ultrix's test do not have this capability, but SunOS and HP/UX do. Is this option not standard, or was it just left out? Thanks. Tony Carter MIT Bates Linac carter@bates.mit.edu