Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* OSF/1 test -h operator
@ 1994-09-15 19:57 Tony Carter
  1994-09-16  5:35 ` Han Pilmeyer
  0 siblings, 1 reply; 3+ messages in thread
From: Tony Carter @ 1994-09-15 19:57 UTC (permalink / raw)



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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: OSF/1 test -h operator
  1994-09-15 19:57 OSF/1 test -h operator Tony Carter
@ 1994-09-16  5:35 ` Han Pilmeyer
  1994-09-16 11:28   ` Charles M Richmond
  0 siblings, 1 reply; 3+ messages in thread
From: Han Pilmeyer @ 1994-09-16  5:35 UTC (permalink / raw)


Well maybe if you're trying to create portable scripts you should
consider using the POSIX shell (ksh)?

In ksh one can test for symbolic links using -L.
--
Disclaimer: This article reflects my own opinion or guestimate, it is
not necessarily the policy of my employer.

Han Pilmeyer                 DEC Easynet:  dcultx::pilmeyer
Digital Equipment bv         Internet:     han@athena.uto.dec.com
Utrecht                      
The Netherlands


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: OSF/1 test -h operator
  1994-09-16  5:35 ` Han Pilmeyer
@ 1994-09-16 11:28   ` Charles M Richmond
  0 siblings, 0 replies; 3+ messages in thread
From: Charles M Richmond @ 1994-09-16 11:28 UTC (permalink / raw)


han@uto.dec.com (Han Pilmeyer) writes:

>Well maybe if you're trying to create portable scripts you should
>consider using the POSIX shell (ksh)?

>In ksh one can test for symbolic links using -L.
>--

Actually in Posix sh (ksh) the test -h also works. The failure of '-h' in
the Bourne sh will be fixed in the 3.0 maintenance release.

Charlie
-- 
*****************************************************************************
*  Charles Richmond 	Integrated International Systems Corporation        *
*  cmr@asoko.iisc.com	cmr@world.std.com				    *
*  Specializing in UNIX, X, Image Processing, and Communications.           *


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1994-09-16 11:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-09-15 19:57 OSF/1 test -h operator Tony Carter
1994-09-16  5:35 ` Han Pilmeyer
1994-09-16 11:28   ` Charles M Richmond

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