From: Randal L. Schwartz on
>>>>> "John" == John Kelly <jak(a)isp2dial.com> writes:

John> It doesn't need to be universally portable. It just needs to work on
John> the platforms I'm interested in.

Might help if you listed precisely what those are, so we don't have to
keep guessing.

--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn(a)stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion
From: John Kelly on
On Wed, 11 Aug 2010 07:08:53 -0700, merlyn(a)stonehenge.com (Randal L.
Schwartz) wrote:

>>>>>> "John" == John Kelly <jak(a)isp2dial.com> writes:
>
>John> It doesn't need to be universally portable. It just needs to work on
>John> the platforms I'm interested in.
>
>Might help if you listed precisely what those are, so we don't have to
>keep guessing.

Any platform that has a /bin/sh with [[ ... ]]. That covers plenty.

Seems like a linear congruential generator could be implemented in shell
code. Maybe I could try that. Or maybe I will just punt and read a few
bytes from /dev/urandom.

# hexdump -n 4 -e '4/1 "%.2x" "\n"' /dev/urandom
8330c618

# hexdump -n 4 -e '4/1 "%.2x" "\n"' /dev/urandom
f30d8825



--
Web mail, POP3, and SMTP
http://www.beewyz.com/freeaccounts.php

From: Seebs on
On 2010-08-11, Randal L. Schwartz <merlyn(a)stonehenge.com> wrote:
>>>>>> "John" == John Kelly <jak(a)isp2dial.com> writes:
>John> It doesn't need to be universally portable. It just needs to work on
>John> the platforms I'm interested in.

> Might help if you listed precisely what those are, so we don't have to
> keep guessing.

Isn't it obvious? They're the platforms that run his code without making
him adapt to other people. Debian's out because they clashed with one of
his naming choices, and now because they're using a much faster shell than
he'd like as their primary system shell.

If there is a case in which you cannot predict his behavior or opinions by
assuming that he's a special unique snowflake and everything should conform
to his expectations, I have yet to encounter it.

I guess... You're making a key mistake here, which is you're thinking like
an engineer or perhaps a consultant. You want to know what the requirements
are so you can suggest a course of action which will meet these needs. This
is not how he is working. The requirements are whatever would allow him to
be successful easily and blame any apparent failures on "bad implementations",
so any system where his first couple of tries don't pan out is clearly a
bad implementation.

-s
--
Copyright 2010, all wrongs reversed. Peter Seebach / usenet-nospam(a)seebs.net
http://www.seebs.net/log/ <-- lawsuits, religion, and funny pictures
http://en.wikipedia.org/wiki/Fair_Game_(Scientology) <-- get educated!
From: Randal L. Schwartz on
>>>>> "John" == John Kelly <jak(a)isp2dial.com> writes:

John> Any platform that has a /bin/sh with [[ ... ]]. That covers
John> plenty.

[...]

John> # hexdump -n 4 -e '4/1 "%.2x" "\n"' /dev/urandom
John> 8330c618

And there are platforms that have a /bin/sh with [[ ]] and no hexdump.

So you must be thinking of some narrowed list of systems. Just curious
as to what *particular* list of machines you seek.

It was so much simpler when everyone ran The One True Unix. :)

--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn(a)stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion
From: John Kelly on
On Wed, 11 Aug 2010 11:25:13 -0700, merlyn(a)stonehenge.com (Randal L.
Schwartz) wrote:

>>>>>> "John" == John Kelly <jak(a)isp2dial.com> writes:
>
>John> Any platform that has a /bin/sh with [[ ... ]]. That covers
>John> plenty.
>
>[...]
>
>John> # hexdump -n 4 -e '4/1 "%.2x" "\n"' /dev/urandom
>John> 8330c618
>
>And there are platforms that have a /bin/sh with [[ ]] and no hexdump.

Maybe, but I don't need to accommodate vintage 1976 systems.


>So you must be thinking of some narrowed list of systems. Just curious
>as to what *particular* list of machines you seek.

You didn't tie yourself down, why would I? ;-)


>It was so much simpler when everyone ran The One True Unix. :)

Yeah, portability is a time killer.


--
Web mail, POP3, and SMTP
http://www.beewyz.com/freeaccounts.php