zsh-workers
 help / color / mirror / code / Atom feed
From: Mikael Magnusson <mikachu@gmail.com>
To: zsh workers <zsh-workers@zsh.org>
Subject: fallout from 37689 and 39949, completing ~-/<tab> broken when no OLDPWD
Date: Thu, 1 Dec 2016 10:38:27 +0100	[thread overview]
Message-ID: <CAHYJk3QnQ--CCD=aAUgdrRmrFCf4uLKujiZBavJpNpJkFkuZkA@mail.gmail.com> (raw)

Prior to 37689 it worked fine (completing files in the current
directory), after that commit it completed nothing, after 39949 it
started instead printing
_path_files:309: no such user or named directory: -
for each run through the completion system (so 3 times in my setup, 1
by default). Doing
 % echo ~-/
 /tmp
still works fine and prints the current directory, doing
 % a='~-/'; echo $~a
 zsh: no such user or named directory: -
exhibits the error, and that's exactly what the completer does on line
309 unsurprisingly:
  elif [[ "$linepath" = [-+] ]]; then
    realpath=${~:-\~$linepath}/


-- 
Mikael Magnusson


             reply	other threads:[~2016-12-01  9:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-01  9:38 Mikael Magnusson [this message]
2016-12-01 16:50 ` Bart Schaefer

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='CAHYJk3QnQ--CCD=aAUgdrRmrFCf4uLKujiZBavJpNpJkFkuZkA@mail.gmail.com' \
    --to=mikachu@gmail.com \
    --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).