This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: test for hard links always fail with pdksh


On Feb 25 01:30, Paul McFerrin wrote:
> A new wrinkle with hard links.  If you are testing for them in
> pdksh, they will always fail.  I.E.:
> 
>    if test -L links/$filename.$inumb
>    then :
>    else
>       ln $filename $filename.$inumb
>    fi
> 
> The above test will always fail and thus will always attempt to
> re-create the hard link.

$ man test

test -L tests for symbolic links, not for hardlinks.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]