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

Re: glob qualifier '-' doesn't work correctly on dangling symlinks



On 2020-04-12 16:49:45 +0100, Peter Stephenson wrote:
> Right, you're saying we don't know the reason it failed without looking
> explicitly at the error, and should be clear about that... how about...
> 
> item(tt(-))(
> toggles between making the qualifiers work on symbolic links (the
> default) and the files they point to, if any; any symbolic link for
> whose target the `tt(stat)' system call fails (whatever the cause of the
> failure) is treated as a file in its own right
> )

OK.

> I don't think we necessarily tell the reason (as opposed to the error code)
> can we?  EPERM might refer to a surrounding directory?

There's no EPERM. Did you mean EACCES?

[EACCES]
    Search permission is denied for a component of the path prefix.

https://pubs.opengroup.org/onlinepubs/9699919799/functions/stat.html

-- 
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



Messages sorted by: Reverse Date, Date, Thread, Author