From 2b2353fc8f042127bf8e3f67b97a838641c61be6 Mon Sep 17 00:00:00 2001 From: oxiedi Date: Wed, 15 Jul 2020 21:32:40 +0500 Subject: based on github #62: return proper exit status --- Completion/Unix/Type/_date_formats | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Completion/Unix') diff --git a/Completion/Unix/Type/_date_formats b/Completion/Unix/Type/_date_formats index 889a95779..55af7c591 100644 --- a/Completion/Unix/Type/_date_formats +++ b/Completion/Unix/Type/_date_formats @@ -1,6 +1,6 @@ #autoload -local flag +local flag ret=1 local -aU specs local -A exclusion @@ -106,5 +106,7 @@ for flag in ${(s..)PREFIX#%}; do done _describe -t date-format-specifier 'date format specifier' specs \ - -p "${(Q)PREFIX:-%}" -S '' + -p "${(Q)PREFIX:-%}" -S '' && ret=0 [[ $1 == zsh ]] && _message -e date-format-precision 'precision for %%. (1-9)' + +return ret -- cgit 1.4.1