zsh-workers
 help / color / mirror / code / Atom feed
* fallout from 37689 and 39949, completing ~-/<tab> broken when no OLDPWD
@ 2016-12-01  9:38 Mikael Magnusson
  2016-12-01 16:50 ` Bart Schaefer
  0 siblings, 1 reply; 2+ messages in thread
From: Mikael Magnusson @ 2016-12-01  9:38 UTC (permalink / raw)
  To: zsh workers

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-12-01 16:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-01  9:38 fallout from 37689 and 39949, completing ~-/<tab> broken when no OLDPWD Mikael Magnusson
2016-12-01 16:50 ` Bart Schaefer

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).