Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Proxy support for zftp functions
- X-seq: zsh-workers 11520
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx (Zsh hackers list)
- Subject: Re: Proxy support for zftp functions
- Date: Mon, 22 May 2000 17:43:34 -0700
- In-reply-to: <000522171947.ZM236@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <0FUZ00C1W0R3BH@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <000522171947.ZM236@xxxxxxxxxxxxxxxxxxxxxxx>
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