zsh-workers
 help / color / mirror / code / Atom feed
* zstrtol/strtol breakage
@ 1995-06-01 20:47 Richard Coleman
  1995-06-01 21:13 ` Richard Coleman
  1995-06-02  9:29 ` J.Yeates
  0 siblings, 2 replies; 3+ messages in thread
From: Richard Coleman @ 1995-06-01 20:47 UTC (permalink / raw)
  To: zsh-workers

I'm trying to figure out what to do about the
zstrtol/strtol breakage.  My first question is
on which platforms is this broken?  I know about
Solaris and SunOS, but are there others?  If it is
broken, then the command

echo {1..10}

will give

{1..10}

rather than

1 2 3 4 5 6 7 8 9 10

You should be using beta8 or beta9 to see this
(if you have a broken strtol).

If only Sun is showing this breakage, then I'll probably
write a configure test for this.  If this is just me
misunderstanding the man page for strtol, then I'll
just put zstrtol back.

rc


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: zstrtol/strtol breakage
  1995-06-01 20:47 zstrtol/strtol breakage Richard Coleman
@ 1995-06-01 21:13 ` Richard Coleman
  1995-06-02  9:29 ` J.Yeates
  1 sibling, 0 replies; 3+ messages in thread
From: Richard Coleman @ 1995-06-01 21:13 UTC (permalink / raw)
  To: zsh-workers

> Solaris and SunOS, but are there others?  If it is
> broken, then the command
> 
> echo {1..10}
> 
> will give
> 
> {1..10}
> 
> rather than
> 
> 1 2 3 4 5 6 7 8 9 10
> 
> You should be using beta8 or beta9 to see this
> (if you have a broken strtol).

oops. A broken strtol will probably give you

1..10

not

{1..10}

I still find it hard to believe that this would be
broken on Sun for so long (I get the above result on
SunOS 4.1.1/4.1.3, Solaris 2.3/2.4).  I was beginning
to think it was just my misunderstanding of the strtol
function until I tried it on Irix 5.3 (which gives the
correct result).

rc


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: zstrtol/strtol breakage
  1995-06-01 20:47 zstrtol/strtol breakage Richard Coleman
  1995-06-01 21:13 ` Richard Coleman
@ 1995-06-02  9:29 ` J.Yeates
  1 sibling, 0 replies; 3+ messages in thread
From: J.Yeates @ 1995-06-02  9:29 UTC (permalink / raw)
  To: Richard Coleman; +Cc: zsh-workers

Quote Of The Day from Richard Coleman:
>echo {1..10}
>
>will give
>
>{1..10}
>
>rather than
>
>1 2 3 4 5 6 7 8 9 10
>
>You should be using beta8 or beta9 to see this
>(if you have a broken strtol).

I'm using beta8 on Solaris 2.3, and I get this:

sunbox - ~: echo {1..10}
. 0 1

Configure defined HAVE_STRTOL.

It also seems to refuse to run .zshlogin and .zshlogout, even when I run it
as '-zsh' or 'zsh -l' (I have to hack it from my .profile, as I can't set
it as my default shell without installing it on all our systems :) Usually,
it dumps core when invoked from .profile, thus:

	echo "Let's use zsh instead"
	exec /export/home/johny/bin/-zsh

-- John Yeates (J.Yeates@susx.ac.uk) -- http://www.susx.ac.uk/Users/johny/ --
   For a good time, call gettimeofday().


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1995-06-02  9:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1995-06-01 20:47 zstrtol/strtol breakage Richard Coleman
1995-06-01 21:13 ` Richard Coleman
1995-06-02  9:29 ` J.Yeates

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).