autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: patch for autoconf manual


From: Peter Eisentraut
Subject: Re: patch for autoconf manual
Date: Thu, 14 Mar 2002 02:54:59 -0500 (EST)

Martin Pool writes:

> I am not sure what a good portable way to test for symlinks from the
> shell would be.

In libtool we've used

if (test -h $file) >/dev/null 2>&1 || (test -L $file) >/dev/null 2>&1 ; then
    echo "$file is a symlink"
fi

(Actually, it's part of a larger scheme to replace 'test -e', but this
part covers the symlink case.)

-- 
Peter Eisentraut   address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]