[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: configure: readlink problem
From: |
Matthias Kilian |
Subject: |
Re: configure: readlink problem |
Date: |
Sun, 4 Jun 2006 23:44:38 +0200 |
User-agent: |
Mutt/1.4.2i |
On Sun, Jun 04, 2006 at 02:26:22PM -0700, Graham Percival wrote:
> > The -f option tells readlink to rekursively resolv all links and find
> >the file which the link finally points to. Without the -f readlink just
> >just gives you what this link points to.
>
> Hmm. FreeBSD's readlink doesn't have any option like that.
Workaround (untested):
f=(whatever)
while [ -h "$f" ]; do
f=$(readlink "$f")
done
Ciao,
Kili
--
GDB has a 'break' feature; why doesn't it have 'fix' too?