zsh-workers
 help / color / mirror / code / Atom feed
From: perso@hack-libre.org
To: zsh-workers@zsh.org
Subject: zsh incorrectly report broken symlink for executable
Date: Wed, 28 Feb 2018 12:56:11 +0000	[thread overview]
Message-ID: <5ccd56b588863f737296c4cf8cb773a8@webmail.nuolezio.org> (raw)

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.


                 reply	other threads:[~2018-02-28 13:02 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5ccd56b588863f737296c4cf8cb773a8@webmail.nuolezio.org \
    --to=perso@hack-libre.org \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).