According to

  $ man [ | grep -A4 -e "-L.*f"
     -L file
        True if file exists and is a symbolic link.  This operator is for
        compatibility purposes.  Do not rely on its existence; use -h
        instead.

I was hunting through /etc/daily for something and see 1.5 (the 0.5
being in a comment/template) instances of -L being used in there:

  $ grep -e '\[.*-L' /etc/*ly
  /etc/daily:if [ -d /tmp -a ! -L /tmp ]; then
  /etc/daily:#if [ -d /scratch -a ! -L /scratch ]; then

Seems like /etc/daily should use -h instead according to the
man-pages.

  $ sed -i.bak '/\[.*-L/s/-L/-h/' /etc/daily

(found mostly because I didn't know what -L did, so I consulted the
docs where they told me not to use it)

-tkc




Reply via email to