From: "Bart Schaefer" <schaefer@candle.brasslantern.com>
To: zsh-workers@sunsite.auc.dk (Zsh hackers list)
Subject: Re: Proxy support for zftp functions
Date: Mon, 22 May 2000 17:43:34 -0700 [thread overview]
Message-ID: <000522174334.ZM248@candle.brasslantern.com> (raw)
In-Reply-To: <000522171947.ZM236@candle.brasslantern.com>
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
prev parent reply other threads:[~2000-05-23 0:43 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-05-22 15:01 Andrej Borsenkow
2000-05-22 15:33 ` Peter Stephenson
2000-05-22 16:03 ` Andrej Borsenkow
2000-05-22 16:17 ` Peter Stephenson
2000-05-22 16:35 ` Andrej Borsenkow
2000-05-22 17:04 ` Peter Stephenson
2000-05-23 0:19 ` Bart Schaefer
2000-05-23 0:43 ` Bart Schaefer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=000522174334.ZM248@candle.brasslantern.com \
--to=schaefer@candle.brasslantern.com \
--cc=zsh-workers@sunsite.auc.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).