-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation for supported shell versions #65
Comments
Interesting! We've wanted to test on older versions of shells but never got to it so we mostly supposed it worked. I just tested with versions 3.1 and 2.05b of bash (compiled and run on a Ubuntu 22.04.4 VM) and it seems to be working:
It took a long time, around 1h30 (on a M1 Macbook Pro) on both versions, and seemed to slow down as it progressed, so it's possible it looked stuck but wasn't actually stuck? I'll try on bash-1.14.7 and ksh93u later, and will update the README accordingly. |
Turns out the issue occurs with bash 2.05a but not 2.05b (Slackware 8.1 is on 2.05a). With 2.05a it stops compiling pnut.sh about half way through. Up to that point the code output is identical. It just stops with an exit code of 1 and no error message. The issue can be reproduced in a debian woody debootstrap chroot. I generated the chroot with this command:
On woody (bash 2.05a) the same issue occurs. |
On bash 1.14 (slackware 2.0.0) I get the following error:
The behaviour of printf seems to be different:
Unfortunately that 4 digit octal notation doesn't work correctly on modern printf (eg on Ubuntu 22.04):
A way that seems to work consistently is using %b:
|
The debootstrap script was very useful and I was able to reproduce the issue with version 2.05a. This commit fixes the issue, and it was the only thing preventing Pnut from bootstrap on that version. For version 1 of bash, I haven't had time to setup a slackware VM to test it. I did make the changes to how characters are emitted by Pnut, maybe you can test it if you have time? Both changes live on |
Seems to be a bit of a pain to build bash 1.14 on a more modern distro. On my slackware 2.0.0 VM I am getting this error on the lastest version from main
Bash 1.x seems not to support |
I've being playing around with pnut on various versions of bash/ksh. I have found that with very old versions pnut.sh will error out (versions from the 90s). With fairly old versions of bash/ksh (early 2000s like bash 2.05) they often work so far, but stop compiling pnut.c part way through. I'm assuming I'm hitting some internal limits within the shell. The earliest version of ksh I have had success with is ksh93u-20120801. I managed to build that version of ksh on an old slackware-8.1 vm.
The text was updated successfully, but these errors were encountered: