Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: finding symlinks without target
- X-seq: zsh-users 1260
- From: Bruce Stephens <B.Stephens@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: finding symlinks without target
- Date: Fri, 23 Jan 1998 16:42:10 +0000
- Cc: ZShell Users <zsh-users@xxxxxxxxxxxxxxx>
- In-reply-to: Your message of "Fri, 23 Jan 1998 08:00:23 PST." <980123080024.ZM16631@xxxxxxxxxxxxxxxxxxxxxxx>
schaefer@xxxxxxxxxxxxxxxx said:
> (Why isn't there a glob qualifier to chase links? **/*(@^.,@^/) would
> appear to be perfect, but doesn't work.)
There is, isn't there. The - seems to be right, almost. How about
**/*(@-^.,@-^/)
Meaning those symbolic links whose referents aren't files or directories? On
the other hand, I'll bet this won't work, because the property of existence is
probably required when globbing. The question is a good one though: there
ought to be a way of doing this, and it probably ought to be an example in the
manual, because it's a common enough task, and it would be cool to have a
one-liner for small trees.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author