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

Re: Proxy support for zftp functions



Oops, I pasted in the wrong version of this.  Hand-edit to fix the following:

On May 22,  5:19pm, Bart Schaefer wrote:
> 
[...]
> 
> local HHMMSS='(<->):(<->):#(<->)#'
> local DDmmYY='(<->)[-[:space:]]([[:alpha:]]##)[-[:space:]](<->)'
> local DDmm='(<->)[[:space:]]([[:alpha:]]##)'
> local ZONE='[[:space:]]#([^:[:space:]]##)'

local -a match

> [[ ${(t)date} == association ]] || typeset -A date ; date=()
> [[ ${(t)time} == association ]] || typeset -A time ; time=()
> 
[...]
> elif [[ "$*" == ${~DDmmYY} || "$*" == ${~DDmm}[[:space:]](<->) ]]
                 ^                     ^
               (#i)(#b)              (#i)(#b)
> then
>     date=(day "$match[1]" month "$match[2]" year "$match[3]")
>     time=(hour "" minute "" second "" ampm "" zone "")
> elif [[ "$*" == ${~HHMMSS}[[:space:]]#([ap]m)# ]]
                 ^
               (#i)(#b)
> then
>     date=(day "" month "" year "")
>     time=(hour "$match[1]" minute "$match[2]" second "$match[3]"
> 	  ampm "$match[4]" zone "")
> fi
> 
> (( $#date || $#time ))
> ---- 8< ---- snip ----8< ----
>-- End of excerpt from Bart Schaefer



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