zsh-users
 help / color / mirror / code / Atom feed
From: Bruce Stephens <bruce@cenderis.demon.co.uk>
To: zsh-users@sunsite.dk
Subject: Re: do I win the "most pointless use of ZSH" award? ;)
Date: 02 May 2001 23:26:57 +0100	[thread overview]
Message-ID: <87u2339yla.fsf@cenderis.demon.co.uk> (raw)
In-Reply-To: <010430151553.ZM9588@candle.brasslantern.com> ("Bart Schaefer"'s message of "Mon, 30 Apr 2001 15:15:53 -0700")

"Bart Schaefer" <schaefer@candle.brasslantern.com> writes:

[...]

> > 	for (( p=0.0, q=0.0, i=0 ; p*p+q*q < 4 && i < 32 ; i++));do

I couldn't get this to work for a while.  It turned out one of my
initialization scripts was setting i to an absolute pathname:

        zsh% i=/foo; for ((i=0; i<10; i++)) echo $i
        zsh: bad math expression: operand expected at `/foo'

Is this a bug or a feature that I'm entirely missing?

[...]


  parent reply	other threads:[~2001-05-02 22:28 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-27 20:31 Alan Third
2001-04-27 20:52 ` Clint Adams
2001-04-30 19:41 ` David Terrell
2001-04-30 20:05   ` Alan Third
2001-04-30 20:23     ` Geoff Raye
2001-04-30 20:38       ` Alan Third
2001-04-30 22:19       ` Bart Schaefer
2001-04-30 22:15     ` Bart Schaefer
2001-05-02 17:30       ` Alan Third
2001-05-02 22:26       ` Bruce Stephens [this message]
2001-05-02 22:56         ` Bart Schaefer

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=87u2339yla.fsf@cenderis.demon.co.uk \
    --to=bruce@cenderis.demon.co.uk \
    --cc=zsh-users@sunsite.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).