zsh-workers
 help / color / mirror / code / Atom feed
* Possible issue with Completion/Unix/Type/_date_formats return value
@ 2021-01-20 22:43 Jacob Menke
  2021-01-26 23:37 ` Daniel Shahaf
  0 siblings, 1 reply; 4+ messages in thread
From: Jacob Menke @ 2021-01-20 22:43 UTC (permalink / raw)
  To: zsh-workers

[-- Attachment #1: Type: text/plain, Size: 656 bytes --]

Hello,

I was wondering if _date_formats has an improper return value.

When called from _date (when $1 is unset, thus $1 == zsh is
false) _date_formats always returns 1 even when matches are generated from
_describe.  This causes completion to continue erroneously.

Last two lines are shown:
_describe -t date-format-specifier 'date format specifier' specs \
    -p "${(Q)PREFIX:-%}" -S ''
[[ $1 == zsh ]] && _message -e date-format-precision 'precision for %%.
(1-9)'

I believe the return value of _describe should be returned either by making
_describe last statement or storing its value in local var ret and then
returning ret.

Thanks,
Jacob Menke

[-- Attachment #2: Type: text/html, Size: 887 bytes --]

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

end of thread, other threads:[~2021-01-28 18:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-20 22:43 Possible issue with Completion/Unix/Type/_date_formats return value Jacob Menke
2021-01-26 23:37 ` Daniel Shahaf
2021-01-28  9:40   ` Jacob Menke
2021-01-28 18:39     ` Daniel Shahaf

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