Replies: 7 comments 41 replies
-
Besides still trying to overcome pushback from some package maintainers who switched to 2020 without any fanfare but now, for various reasons, aren't enthusiastic about switching to ksh93u+m even though ksh2020 is no longer extant, well... this is awesome. Thanks so much! I was in fact only vaguely aware of this repository and project until nearly going insane due to ksh2020 being shipped to me as ksh93 by another project, so I'm very glad to see this here. I usually just "trust" that Red Hat and IBM will ship me a non-bum shell, without looking more into "how the sausage is made". Having used ksh for 30+ years, if my ksh is broken, I'm broken. I can't do any work. *sigh* While I can actually get along just fine with zsh and often prefer it interactively, I don't think I'll ever default to writing scripts in anything but ksh. One of the biggest reasons is the extensive math libraries, so I was worried when I heard that the ksh2020 project had been removing math functions that were broken, rather than fixing them. My primary ksh shell usage these days is on AIX, and AIX is shipping a |
Beta Was this translation helpful? Give feedback.
-
I only have access to a customer AIX 7.1 server with gcc 6.3.0 on it..
the only problem I goti when compiling:
/usr/include/sys/time.h:126:3: error: conflicting types for 'sigset_t'
} sigset_t;
Seems the AIX time.h contains also a typedef sigset_t
I adapted the gcc sys/types.h adding a #define _SIGSET_T after the
definition of the typedef.
After that it compiled without problems.
ls -l arch/ibm.risc-64/bin/ksh
-rwxr-xr-x 1 user usgrp 1447640 Aug 03 13:59
ksh-master/arch/ibm.risc-64/bin/ksh
arch/ibm.risc-64/bin/ksh --version
version sh (AT&T Research) 93u+m/1.1.0-alpha 2022-07-31
The bin/shtests -p however shows some problems... (see underneath)
Hope someone from IBM steps in and compiles it correctly or give you some
access to an AIX server.
Hans
#### Regression-testing ..../arch/ibm.risc-64/bin/ksh ####
test alias begins at 2022-08-03+13:42:02
test alias passed at 2022-08-03+13:42:02 [ 45 tests 0 errors ]
test append begins at 2022-08-03+13:42:02
test append passed at 2022-08-03+13:42:02 [ 17 tests 0 errors ]
test arith begins at 2022-08-03+13:42:02
test arith passed at 2022-08-03+13:42:02 [ 252 tests 0 errors ]
test arrays begins at 2022-08-03+13:42:02
..../src/cmd/ksh93/tests/arrays.sh: line 239: panic: out of memory (needed
1 bytes)
test arrays failed at 2022-08-03+13:42:02 with exit code 75 [ 170 tests 75
errors ]
test arrays2 begins at 2022-08-03+13:42:02
test arrays2 passed at 2022-08-03+13:42:03 [ 57 tests 0 errors ]
test attributes begins at 2022-08-03+13:42:03
..../src/cmd/ksh93/tests/attributes.sh: line 269: panic: out of memory
(needed 1 bytes)
test attributes failed at 2022-08-03+13:42:03 with exit code 75 [ 167 tests
75 errors ]
test basic begins at 2022-08-03+13:42:03
test basic passed at 2022-08-03+13:42:12 [ 147 tests 0 errors ]
test bracket begins at 2022-08-03+13:42:12
test bracket passed at 2022-08-03+13:42:14 [ 158 tests 0 errors ]
test builtins begins at 2022-08-03+13:42:14
test builtins passed at 2022-08-03+13:42:22 [ 286 tests 0 errors ]
test case begins at 2022-08-03+13:42:22
test case passed at 2022-08-03+13:42:22 [ 22 tests 0 errors ]
test comvar begins at 2022-08-03+13:42:22
test comvar passed at 2022-08-03+13:42:22 [ 102 tests 0 errors ]
test comvario begins at 2022-08-03+13:42:23
comvario.sh[26]: warning: -lm does not support signbit(-NaN)
test comvario passed at 2022-08-03+13:42:30 [ 73 tests 0 errors ]
test coprocess begins at 2022-08-03+13:42:30
test coprocess passed at 2022-08-03+13:42:34 [ 35 tests 0 errors ]
test cubetype begins at 2022-08-03+13:42:34
test cubetype passed at 2022-08-03+13:42:35 [ 68 tests 0 errors ]
test enum begins at 2022-08-03+13:42:35
test enum passed at 2022-08-03+13:42:35 [ 47 tests 0 errors ]
test exit begins at 2022-08-03+13:42:35
test exit passed at 2022-08-03+13:42:35 [ 35 tests 0 errors ]
test expand begins at 2022-08-03+13:42:36
test expand passed at 2022-08-03+13:42:36 [ 7 tests 0 errors ]
test functions begins at 2022-08-03+13:42:36
test functions passed at 2022-08-03+13:42:38 [ 121 tests 0 errors ]
test glob begins at 2022-08-03+13:42:38
test glob passed at 2022-08-03+13:42:39 [ 174 tests 0 errors ]
test grep begins at 2022-08-03+13:42:39
test grep passed at 2022-08-03+13:42:39 [ 1 test 0 errors ]
test heredoc begins at 2022-08-03+13:42:39
test heredoc passed at 2022-08-03+13:42:41 [ 43 tests 0 errors ]
test io begins at 2022-08-03+13:42:41
test io passed at 2022-08-03+13:42:45 [ 162 tests 0 errors ]
test jobs begins at 2022-08-03+13:42:45
test jobs passed at 2022-08-03+13:42:46 [ 25 tests 0 errors ]
test leaks begins at 2022-08-03+13:42:46
leaks.sh[168]: warning: skipping test for known leak "defining
associative array in subshell"; export DEBUG=y to test and help us fix it
at: #94
leaks.sh[353]: warning: skipping test for known leak "set PATH
attribute in main shell"; export DEBUG=y to test and help us fix it at:
#405
leaks.sh[361]: warning: skipping test for known leak "unset PATH in
main shell"; export DEBUG=y to test and help us fix it at:
#405
leaks.sh[374]: warning: skipping test for known leak "set PATH
value in subshell"; export DEBUG=y to test and help us fix it at:
#405
leaks.sh[379]: warning: skipping test for known leak "run command
with preceding PATH assignment in subshell"; export DEBUG=y to test and
help us fix it at: #405
leaks.sh[384]: warning: skipping test for known leak "set PATH
attribute in subshell"; export DEBUG=y to test and help us fix it at:
#405
leaks.sh[389]: warning: skipping test for known leak "unset PATH in
subshell"; export DEBUG=y to test and help us fix it at:
#405
leaks.sh[413]: warning: skipping test for known leak "variable with
discipline function in subshell"; export DEBUG=y to test and help us fix it
at: #404
test leaks passed at 2022-08-03+13:43:25 [ 36 tests 0 errors ]
test locale begins at 2022-08-03+13:43:25
test locale passed at 2022-08-03+13:43:25 [ 43 tests 0 errors ]
test math begins at 2022-08-03+13:43:25
test math passed at 2022-08-03+13:43:39 [ 17 tests 0 errors ]
test nameref begins at 2022-08-03+13:43:39
test nameref passed at 2022-08-03+13:43:40 [ 95 tests 0 errors ]
test namespace begins at 2022-08-03+13:43:40
test namespace passed at 2022-08-03+13:43:40 [ 23 tests 0 errors ]
test options begins at 2022-08-03+13:43:40
test options passed at 2022-08-03+13:43:47 [ 177 tests 0 errors ]
test path begins at 2022-08-03+13:43:47
test path passed at 2022-08-03+13:43:53 [ 146 tests 0 errors ]
test pointtype begins at 2022-08-03+13:43:53
test pointtype passed at 2022-08-03+13:43:53 [ 36 tests 0 errors ]
test posix begins at 2022-08-03+13:43:53
test posix passed at 2022-08-03+13:43:53 [ 61 tests 0 errors ]
test pty begins at 2022-08-03+13:43:53
pty.sh[35]: warning: pty not confirmed to work correctly on this
system -- tests skipped
test pty passed at 2022-08-03+13:43:53 [ 46 tests 0 errors ]
test quoting begins at 2022-08-03+13:43:53
test quoting passed at 2022-08-03+13:43:55 [ 96 tests 0 errors ]
test quoting2 begins at 2022-08-03+13:43:55
test quoting2 passed at 2022-08-03+13:43:55 [ 81 tests 0 errors ]
test readcsv begins at 2022-08-03+13:43:55
test readcsv passed at 2022-08-03+13:43:55 [ 4 tests 0 errors ]
test readonly begins at 2022-08-03+13:43:55
test readonly passed at 2022-08-03+13:43:55 [ 8 tests 0 errors ]
test recttype begins at 2022-08-03+13:43:55
test recttype passed at 2022-08-03+13:43:55 [ 8 tests 0 errors ]
test restricted begins at 2022-08-03+13:43:55
test restricted passed at 2022-08-03+13:43:56 [ 21 tests 0 errors ]
test return begins at 2022-08-03+13:43:56
test return passed at 2022-08-03+13:43:56 [ 47 tests 0 errors ]
test select begins at 2022-08-03+13:43:56
test select passed at 2022-08-03+13:43:56 [ 4 tests 0 errors ]
test sh_match begins at 2022-08-03+13:43:56
test sh_match passed at 2022-08-03+13:43:57 [ 129 tests 0 errors ]
test sigchld begins at 2022-08-03+13:43:57
test sigchld passed at 2022-08-03+13:44:19 [ 14 tests 0 errors ]
test signal begins at 2022-08-03+13:44:19
signal.sh[263]: FAIL: interrupt --- test failed -- expected
'3-intr', got '3-0000 2-0000'
signal.sh[263]: FAIL: interrupt -t- test failed -- expected '3-intr
2-intr 1-intr 1-0258', got '3-0000 2-0000 1-intr 1-0000'
signal.sh[263]: FAIL: interrupt x-- test failed -- expected '3-intr
2-intr', got '3-0000 2-0000'
signal.sh[263]: FAIL: interrupt xt- test failed -- expected '3-intr
2-intr 1-intr 1-0000', got '3-0000 2-0000 1-intr 1-0000'
test signal passed at 2022-08-03+13:44:25 [ 55 tests 0 errors ]
test statics begins at 2022-08-03+13:44:25
test statics passed at 2022-08-03+13:44:25 [ 7 tests 0 errors ]
test subshell begins at 2022-08-03+13:44:25
test subshell passed at 2022-08-03+13:44:57 [ 150 tests 0 errors ]
test substring begins at 2022-08-03+13:44:57
test substring passed at 2022-08-03+13:44:58 [ 217 tests 0 errors ]
test tilde begins at 2022-08-03+13:44:58
test tilde passed at 2022-08-03+13:44:58 [ 24 tests 0 errors ]
test timetype begins at 2022-08-03+13:44:58
test timetype passed at 2022-08-03+13:44:58 [ 18 tests 0 errors ]
test treemove begins at 2022-08-03+13:44:58
test treemove passed at 2022-08-03+13:44:58 [ 10 tests 0 errors ]
test types begins at 2022-08-03+13:44:58
test types passed at 2022-08-03+13:44:58 [ 99 tests 0 errors ]
test variables begins at 2022-08-03+13:44:58
test variables passed at 2022-08-03+13:45:07 [ 193 tests 0 errors ]
test vartree1 begins at 2022-08-03+13:45:07
test vartree1 passed at 2022-08-03+13:45:07 [ 9 tests 0 errors ]
test vartree2 begins at 2022-08-03+13:45:07
test vartree2 passed at 2022-08-03+13:45:08 [ 21 tests 0 errors ]
Total errors: 150
CPU time user: system:
main: 0m00.082s 0m00.108s
tests: 0m18.384s 0m16.442s
On Wed, Aug 3, 2022 at 8:20 AM Martijn Dekker ***@***.***> wrote:
ksh2020 diehards will come around eventually I suppose. This project is
alive and I'm not planning to go anywhere, ksh2020 is very much dead and
I've got Siteshwar's blessing as its successor.
I've never heard from anyone at IBM, nor do I have access to an AIX
system since polarhome shut down. I would love to test ksh on AIX again. I
take it that it still builds and works? Do you happen to know where I could
get an AIX shell account for testing purposes without paying through the
nose?
…
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
a big thank you from my side as well! I am very happy to see this happening. I've installed it today and can confirm that compilation on macOS is painless (which definitely is an improvement in itself...). so ksh93u+m is now up and running on my machine. BUT:
crashes immediately with
this is on macOS 10.15.7 ( Darwin Kernel Version 19.6.0). is this a known issue? |
Beta Was this translation helpful? Give feedback.
-
yes. some warnings in `leaks.sh'. one error:
|
Beta Was this translation helpful? Give feedback.
-
Unfortunately the 1.0.0 release is fatally broken, see #507. I'm releasing 1.0.1 and everyone should update ASAP. |
Beta Was this translation helpful? Give feedback.
-
ok, so I tried: I run know into the "wrong ksh instance" issue (?) even when issuing
I do not really understand why this is happening to me with the setup described previously. it should be possible to compile even if $SHELL points to only after pointing my |
Beta Was this translation helpful? Give feedback.
-
I compiled it in Cygwin and notice that in vim, highlighting text doesn't copy it. It does copy outside of VIM. It also does so in Bash and with 93u+ 2012-08-01 which was the last version I was using. |
Beta Was this translation helpful? Give feedback.
-
So, it's out, finally. :)
See here for the announcement and the download links: https://github.com/ksh93/ksh/releases/tag/v1.0.0
Feel free to comment and report your experiences below.
Beta Was this translation helpful? Give feedback.
All reactions