Use test -h instead of test -L for portability
authorThomas Arendsen Hein <thomas@intevation.de>
Fri, 21 Dec 2007 09:51:19 +0100
changeset 5682 048889f8c7d1
parent 5681 40db4f03085d
child 5683 396c7010b0cd
Use test -h instead of test -L for portability Citing from the GNU autoconf manual: "either form conforms to Posix 1003.1-2001, but older shells like Solaris 8 /bin/sh support only -h"
tests/test-merge-types
--- a/tests/test-merge-types	Fri Dec 21 00:14:45 2007 +0100
+++ b/tests/test-merge-types	Fri Dec 21 09:51:19 2007 +0100
@@ -16,7 +16,7 @@
 
 echo % symlink is left parent, executable is right
 
-if [ -L a ]; then
+if [ -h a ]; then
     echo a is a symlink
     readlink a
 elif [ -x a ]; then
@@ -28,7 +28,7 @@
 
 echo % symlink is right parent, executable is left
 
-if [ -L a ]; then
+if [ -h a ]; then
     echo a is a symlink
     readlink a
 elif [ -x a ]; then