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

zsh incorrectly report broken symlink for executable



Hi,

When I symlink an executable and that executable is moved, zsh doesn’t offer completion when using absolute path for it and
reports that the original file is not found.

To reproducing the issue:
$ ln -s file_that_does_not_exist broken_link
$ ./broken<TAB>_link
zsh: no such file or directory: ./broken_link
$ /home/myuser/broken<TAB> # nothing happens

What should happen:

- zsh should complete always to not confuse the user (the file exists!)
- zsh should display a better error message like:
zsh: symlink points to inexistent file or directory: ./broken_link

Thanks by advance.



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