The autoconf manual recommends to use "test -h", not "test -L".

2007-08-26  Bruno Haible  <[EMAIL PROTECTED]>

        * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".

--- gnulib-tool 23 Jul 2007 22:08:02 -0000      1.252
+++ gnulib-tool 26 Aug 2007 10:28:47 -0000
@@ -409,7 +409,7 @@
     echo "usage: func_ln_if_changed SRC DEST" >&2
   fi
   ln_target=`func_readlink "$2"`
-  if test -L "$2" && test "$1" = "$ln_target"; then
+  if test -h "$2" && test "$1" = "$ln_target"; then
     :
   else
     rm -f "$2"



Reply via email to