zsh-workers
 help / color / mirror / code / Atom feed
From: Richard Coleman <coleman@math.gatech.edu>
To: zsh-workers@math.gatech.edu
Subject: Re: Octal interpretation
Date: Fri, 03 Nov 1995 05:58:19 -0500	[thread overview]
Message-ID: <199511031058.FAA01596@redwood.skiles.gatech.edu> (raw)
In-Reply-To: Your message of "Fri, 03 Nov 1995 10:01:46 +0100." <9511030901.AA21400@sgi.ifh.de>

> I am heartily sick of being told my stack is unbalanced because the
> time happens to be 12:08.  Based on the following two facts,
> 
> 1) No valid octal number ever starts 08 or 09
> 
> 2) 08 and 09 are the only two digit numbers evaluated incorrectly
> 
> I would like to propose that zstrtol explicitly checks for an 8 or a 9
> following the 0 and if there is one evaluates it in decimal.  This
> will mean times can be handled properly --- what I mainly use
> arithmetic in zsh for anyway --- while real octal numbers won't be
> affected.
> 
> Anybody writing scripts for users where this may matter should in any
> case be stripping leading 0's as a matter of course.  If that's a big
> problem, we should simply remove octal handling.  (What's wrong with
> 8#77 etc. anyway?  Isn't this just why ksh introduced that syntax?)

I've been planning on getting back to this.  My first thoughts are to
just reverted back to decimail as the default.

rc


  reply	other threads:[~1995-11-03 11:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-11-03  9:01 Peter William Stephenson
1995-11-03 10:58 ` Richard Coleman [this message]
1995-11-03 16:54   ` Zoltan Hidvegi
1995-11-04  1:28     ` Richard Coleman

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=199511031058.FAA01596@redwood.skiles.gatech.edu \
    --to=coleman@math.gatech.edu \
    --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).