Re: [PATCH] IBM z/OS + EBCDIC support

2015-04-24 Thread Thorsten Glaser
Daniel Richard G. dixit:

>I'd like to submit some changes that add support for IBM z/OS mainframe
>systems (specifically, for mksh running in the OMVS Unix environment),
>including compatibility with EBCDIC.

Woah!

I’m amazed, flattered, impressed, puzzled, wondering, etc. at the
same time. Please give me a bit to come up with a suitable reply,
this deserves some time to think about, and I love your enthusiasm.

>My ASCII-art .sig got a bad case of Times New Roman.

My condolence! Rest assured I’m using FixedMisc [MirOS]¹ here.

① https://www.mirbsd.org/MirOS/dist/mir/Foundry/FixedMisc-20130517.tgz

bye,
//mirabilos
-- 
FWIW, I'm quite impressed with mksh interactively. I thought it was much
*much* more bare bones. But it turns out it beats the living hell out of
ksh93 in that respect. I'd even consider it for my daily use if I hadn't
wasted half my life on my zsh setup. :-) -- Frank Terbeck in #!/bin/mksh


Re: [PATCH] IBM z/OS + EBCDIC support

2015-04-24 Thread Daniel Richard G.
On Fri, 2015 Apr 24 14:29+, Thorsten Glaser wrote:
> 
> Woah!
> 
> I’m amazed, flattered, impressed, puzzled, wondering, etc. at the same
> time. Please give me a bit to come up with a suitable reply, this
> deserves some time to think about, and I love your enthusiasm.

Oh, you're very kind!

mksh already has a remarkable track record of portability, and this
would be yet another feather in its cap. The build system, though
unconventional, turned out to be a lot easier to work with in the EBCDIC
environment than GNU Bash's.

By the way, there's one addendum I'd like to put here: It turns out that
NSIG=32 isn't quite right for z/OS. The system has a few more signals
than that, some of which appear to be unique:

$ kill -l
 NULL HUP INT ABRT ILL POLL URG STOP FPE KILL BUS SEGV SYS PIPE ALRM
TERM USR1 USR2 ABND CONT CHLD TTIN TTOU IO QUIT TSTP TRAP IOERR
WINCH XCPU XFSZ VTALRM PROF DANGER TRACE DCE DUMP

$ kill -l | tr ' ' '\n' | grep . | wc -l
 37 

$ grep SIGDUMP /usr/include/signal.h
  #define SIGDUMP  39

(SIGDANGER, Will Robinson!)

Do take the time you need to chew through all those changes, of course.
I'll be happy to pick things up again at your convenience.

> >My ASCII-art .sig got a bad case of Times New Roman.
>
> My condolence! Rest assured I’m using FixedMisc [MirOS]¹ here.
>
> ① https://www.mirbsd.org/MirOS/dist/mir/Foundry/FixedMisc-20130517.tgz

Nice! If it weren't for the big Web-mail providers seeing fit to display
.signatures in variable-width fonts, there would still be a little ASCII
skunk down below ^_^


--Daniel


-- 
Daniel Richard G. || sk...@iskunk.org
My ASCII-art .sig got a bad case of Times New Roman.