Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: finding symlinks without target



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