diff options
author | oxiedi <oxiedi@yandex.ru> | 2020-07-15 21:32:40 +0500 |
---|---|---|
committer | Oliver Kiddle <opk@zsh.org> | 2021-02-07 01:27:23 +0100 |
commit | 2b2353fc8f042127bf8e3f67b97a838641c61be6 (patch) | |
tree | 65dbd15d2630863b6e7c3d259ae8f3960c7857a4 /Completion | |
parent | f59b6f6df3f3de609b261de41dcfb6029c4d523b (diff) | |
download | zsh-2b2353fc8f042127bf8e3f67b97a838641c61be6.tar.gz zsh-2b2353fc8f042127bf8e3f67b97a838641c61be6.tar.xz zsh-2b2353fc8f042127bf8e3f67b97a838641c61be6.zip |
based on github #62: return proper exit status
Diffstat (limited to 'Completion')
-rw-r--r-- | Completion/Unix/Type/_date_formats | 6 |
1 files changed, 4 insertions, 2 deletions
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 |