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

* Re: fallout from 37689 and 39949, completing ~-/<tab> broken when no OLDPWD
  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
  0 siblings, 0 replies; 2+ messages in thread
From: Bart Schaefer @ 2016-12-01 16:50 UTC (permalink / raw)
  To: zsh workers

On Dec 1, 10:38am, Mikael Magnusson wrote:
} Subject: fallout from 37689 and 39949, completing ~-/<tab> broken when no 
}
} 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: -

Hmm.  I still have the completes-nothing behavior.  Fragment of trace:

        +_path_files:277> [[ '~' = \~ && '' = (|`) ]]
        +_path_files:286> linepath=- 
        +_path_files:287> [[ -z - ]]
        +_path_files:289> [[ - = ([-+]|)[0-9]## ]]
        +_path_files:308> [[ - = [-+] ]]
        +_path_files:309> realpath='~-/' 
        +_path_files:317> linepath='~-/' 
        +_path_files:318> [[ '~-/' = \~-/ ]]
        +_path_files:318> return 1


}  % a='~-/'; echo $~a
}  zsh: no such user or named directory: -

That, however, I can reproduce.


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