Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: _canonical_path not working on *BSD
- X-seq: zsh-workers 24749
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: _canonical_path not working on *BSD
- Date: Wed, 26 Mar 2008 09:18:33 -0700
- In-reply-to: <200803261604.m2QG41Ke017772@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20080326114413.80713vrmznwpnyuc@xxxxxxxxxxxxxxx> <080326083638.ZM16858@xxxxxxxxxxxxxxxxxxxxxx> <200803261540.m2QFeJmm017381@xxxxxxxxxxxxxx> <200803261604.m2QG41Ke017772@xxxxxxxxxxxxxx>
On Mar 26, 4:04pm, Peter Stephenson wrote:
}
} Hmm... sorry about all the traffic... actually, it still doesn't
} guarantee to give a canonical path as "readlink -f" does, since it
} doesn't check if the value returned is itself a symbolic link
Using a while-loop in shell code leads to a potentially infinite loop
on a symlink cycle. I think readlink and realpath have some sort of
defense against that.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author