Anarudha, I am on Focal Fossa and the ksh93 version is: $ ksh93 --version version sh (AT&T Research) 93u+ 2012-08-01
Ksh93 is pretty clean and it has only one major bug that I never filed a ticket for: the handling 'command | while read ...'. A simple example is: $ ls | while read f; do [ -f "$f" ] || continue; cp $f /tmp/test/.; done cp: cp: cannot execute [Exec format error] cp: cp: cannot execute [Exec format error] cp: cp: cannot execute [Exec format error] cp: cp: cannot execute [Exec format error] cp: cp: cannot execute [Exec format error] cp: cp: cannot execute [Exec format error] cp: cp: cannot execute [Exec format error] cp: cp: cannot execute [Exec format error] cp: cp: cannot execute [Exec format error] cp: cp: cannot execute [Exec format error] cp: cp: cannot execute [Exec format error] cp: cp: cannot execute [Exec format error] cp: cp: cannot execute [Exec format error] Whenever I am hit with this issue, I just run the command in a sub- shell: $ ksh -c 'ls | while read f; do [ -f "$f" ] || continue; cp $f /tmp/test/.; done' The workaround is simple enough that I never bothered to file a ticket. But, just trying it again, this bug has gotten worse with the FF version!: this kind of loop now hangs after it's completed, whether or not it is run in a sub-shell! The valgrind output of 'ksh93 -l' is attached. If you send me a copy of the Groovy Gorilla ksh93, I can give it a spin and, if it's not fixed, I can file a ticket. Or I can file a ticket for the FF version right now. Thanks, Chris (chris.ber...@gmail.com or chris.ber...@protonmail.com) On Fri, Jul 17, 2020 at 7:50 AM Anuradha Weeraman < 1887...@bugs.launchpad.net> wrote: > Chris, thanks for the report and Valgrind observations. > > We have reverted ksh2020 back to ksh93u+, in Debian and Ubuntu with the > latest version 2020.0.0+really93u+20120801-8 as of this writing > available for Groovy Gorilla when you install the "ksh" package. > > Could you pick up this version and let us know if you continue to run > into problems? Happy to help resolve and/or bring them to the attention > of folks who may be able to help you move forward. > > -- > You received this bug notification because you are subscribed to the bug > report. > https://bugs.launchpad.net/bugs/1887863 > > Title: > ksh2020 has massive memory issues > > Status in ksh package in Ubuntu: > New > > Bug description: > I have a complex ksh environment that I have built over 40 years and > it's worked fine (with occasional tweaks) on most systems (SunOS, > Solaris, BSD, HP-UX, AIX, NCR, many Linux versions). I just upgraded > to kubuntu 20.04 and my 'xterm -ls' windows failed to open because the > shell was crashing. I reverted to ksh93 and it worked again. Errors > with ksh2020 were false reports of mismatched single or double quotes, > among others. I stripped down my environment and managed to use 2020. > But when I run some functions, it still blows up. I ran it with > 'valgrind' (something that every single app should be run with before > any release, especially a shell!) and it came up with hundreds of > errors. Ksh93 only has a handful. Valgrind output is attached. My > environment is probably too big to share with you but fixing all the > glaring issues exposed by valgrind may resolve my problems. For now, I > am back on ksh93. > > To manage notifications about this bug go to: > https://bugs.launchpad.net/ubuntu/+source/ksh/+bug/1887863/+subscriptions > ** Attachment added: "ksh93.err" https://bugs.launchpad.net/bugs/1887863/+attachment/5393592/+files/ksh93.err -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1887863 Title: ksh2020 has massive memory issues To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ksh/+bug/1887863/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs