zsh-workers
 help / color / mirror / code / Atom feed
From: Mark Borges <mdb@cdc.noaa.gov>
To: A.Main@dcs.warwick.ac.uk
Cc: ZSH mailing list <zsh-workers@math.gatech.edu>
Subject: Re: offset calendar days
Date: Sat, 30 Sep 1995 09:41:38 -0600	[thread overview]
Message-ID: <9509301541.AA22947@bjerknes.cdc.noaa.gov> (raw)
In-Reply-To: <29062.199509300517@stone.dcs.warwick.ac.uk>

>> Zefram (Z) wrote on Sat, 30 Sep 1995 06:17:42 +0100 (BST):
>> 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?

Z> What's wrong with $((18+(${2:-1}-1)*24)) ?

Err, nothing, it should work too but it doesn't:

$ TZ=GMT-$((18+(${2:-1}-1)*24)) date +%j
zsh: ')' expected

Z> And the line above works for me (2.6-beta11-test7).

Yes, you're right. It works in 2.6-b10 as well, so I presume the bug
is restricted to the hzoli releases (though I've only verified up to
hzoli10.2). I should have checked this prior to my original post to
the list.

Thanks for the info.

  -mb-



      reply	other threads:[~1995-09-30 15:42 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
1995-09-30 15:41       ` Mark Borges [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=9509301541.AA22947@bjerknes.cdc.noaa.gov \
    --to=mdb@cdc.noaa.gov \
    --cc=A.Main@dcs.warwick.ac.uk \
    --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).