Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: _ps1234, _date_formats: Complete strftime formats for %D{}



"Jun T." wrote:
> man strftime(3) says:
> 
>     Between the '%' character and the conversion specifier character,
>     an optional flag and field width may be specified.  (These precede
>     the E or O modifiers, if present.)
> 
> Here, the flag is one of - _ 0 ^ #. So Isn't it better to omit the
> flags - _ ^ # from the exclusion above?

Good point, thanks. I hadn't noticed that there was a distinction between
the flags and modifiers.

Oliver

diff --git a/Completion/Unix/Type/_date_formats b/Completion/Unix/Type/_date_formats
index 2daf820..09f8cab 100644
--- a/Completion/Unix/Type/_date_formats
+++ b/Completion/Unix/Type/_date_formats
@@ -5,8 +5,8 @@ local -aU specs
 local -A exclusion
 
 exclusion=(
-  'E' '[-_^#cCgGxXyY]'
-  'O' '[-_^#BdeHImMSuUVwWy]'
+  'E' '[cCgGxXyY]'
+  'O' '[BdeHImMSuUVwWy]'
   '-' '[OEdegHIjklmMSUz]'
   '_' '[OEdgHIjmMSUz]'
   '0' '[Oekl]'



Messages sorted by: Reverse Date, Date, Thread, Author