Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: glob qualifier '-' doesn't work correctly on dangling symlinks
2020-04-11 17:15:11 +0200, Vincent Lefevre:
[...]
> +zsh:10> ls -l file3
> lrwxrwxrwx 1 lefevre lefevre 5 2008-12-28 22:34:28 file3 -> file0
>
> file*(-W) should have no matches.
[...]
It is not really documented but kind of implied that on broken
symlinks, after -, we're still looking at the symlink instead of
the target (there's no target for us to look at anyway).
The manual has:
> ls -ld -- *(-@)
>
> lists all broken symbolic links, and
That's consistent with GNU find's -xtype l
Or:
find -L . -perm -2
--
Stephane
Messages sorted by:
Reverse Date,
Date,
Thread,
Author