Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
fallout from 37689 and 39949, completing ~-/<tab> broken when no OLDPWD
- X-seq: zsh-workers 40058
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh workers <zsh-workers@xxxxxxx>
- Subject: fallout from 37689 and 39949, completing ~-/<tab> broken when no OLDPWD
- Date: Thu, 1 Dec 2016 10:38:27 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=OBF7oL862w+eJsPzMyg0pYG0GBHnUuzP4ZJF0DNHMic=; b=doBSavE61WNlTJxvc+g9qYP6Qba0CfBZ0YSlHPgi1QvtioDwik1slPOq2frXnE9b9J oC8M5IXYWwuqDDDZdvSFuIaTBqWfemlvgqhBlURyeb0GFyQZesK/o+n8OvWx68pTzR6V AcmYMZGKW5UQQFtERZ64URu7MBs5dA2QP95JseRTmrG9i9FJu4gSePLfWURtGj6ikrBo /IhwDK1XScVag9Z2EuRUAMRAXrwgXnxt1TNmI/b6A2Bsq5TUC+/7fR2W2c3MzJ+MJwU+ fvzvDUH2ti3AZIngaAz/Wx2djJQD7ZLD2f7ATo+5X8XbTqPWuaBZEIUvpSU+8+PoitpD ayRg==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author