From: becker@phobos.atria.com (Paul H. Becker)
To: zsh-workers@math.gatech.edu
Subject: Math expressions with 08 or 09 -> zsh2.6-beta10
Date: Wed, 30 Aug 1995 09:50:56 -0400 [thread overview]
Message-ID: <9508301350.AA01002@phobos> (raw)
These leading zeros are inconsistent. Math expressions do not seem to
like numbers 08 or 09.
zsh -f
% [ 03 -gt 07 ] && echo ok
% [ 07 -gt 03 ] && echo ok
ok
% [ 07 -gt 07 ] && echo ok
% [ 08 -gt 07 ] && echo ok
zsh: bad math expression: unbalanced stack
% [ 07 -gt 08 ] && echo ok
zsh: bad math expression: unbalanced stack
% [ 07 -gt 09 ] && echo ok
zsh: bad math expression: unbalanced stack
in an effort to stip off the leading zero....
% let x=01
% echo $x
1
% let x=07
% echo $x
7
% let x=08
zsh: lvalue required
% echo $x
7
% echo $ZSH_VERSION
2.6-beta10
(thanks for your work on the best shell out there...)
------------------------------------------------------------------------------
Paul Becker o Atria Software main: 508-650-5100
(508)650-5116 /~> 24 Prime Park Way fax: 508-647-1760
becker@Atria.com o...(\ Natick, MA 01760 <URL://http:/www.atria.com/>
----------------- ~~~~~~~~~~ -----------------------------------------------
New ! Effective September 5, 1995
------------------------------------------------------------------------------
Paul Becker o Atria Software main: 617-676-2400
(617)676-2605 /~> 20 Maguire Road fax: 617-676-2410
becker@Atria.com o...(\ Lexington, MA 02173 http://www.atria.com/
----------------- ~~~~~~~~~~ -----------------------------------------------
next reply other threads:[~1995-08-30 13:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-08-30 13:50 Paul H. Becker [this message]
1995-08-30 14:27 ` Matt
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=9508301350.AA01002@phobos \
--to=becker@phobos.atria.com \
--cc=becker@Atria.com \
--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).