From: Zefram <A.Main@dcs.warwick.ac.uk>
To: mdb@cdc.noaa.gov (Mark Borges)
Cc: zsh-workers@math.gatech.edu (Z Shell workers mailing list)
Subject: Re: offset calendar days
Date: Sat, 30 Sep 1995 06:17:42 +0100 (BST) [thread overview]
Message-ID: <29062.199509300517@stone.dcs.warwick.ac.uk> (raw)
In-Reply-To: <9509300506.AA13575@charney.cdc.noaa.gov> from "Mark Borges" at Sep 29, 95 11:06:40 pm
>charney$ echo $ZSH_VERSION
>2.6-beta10-hzoli10.2
>charney$ TZ=GMT-$((18+$((${2:-1}-1))*24)) date +%j
>zsh: ')' expected
>
>------------------------------------------------------------------------------
>If not a bug, is there an alternate syntax I can use in zsh?
What's wrong with $((18+(${2:-1}-1)*24)) ? And the line above works
for me (2.6-beta11-test7).
-zefram
next prev parent reply other threads:[~1995-09-30 5:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <9509292108.AA02931@revelle.cdc.noaa.gov>
[not found] ` <9509292153.AA15311@turan.elte.hu>
1995-09-30 5:06 ` Mark Borges
1995-09-30 5:17 ` Zefram [this message]
1995-09-30 15:41 ` Mark Borges
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=29062.199509300517@stone.dcs.warwick.ac.uk \
--to=a.main@dcs.warwick.ac.uk \
--cc=mdb@cdc.noaa.gov \
--cc=zsh-workers@math.gatech.edu \
/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).