Hello Mark,
The devil is probably hiding behind the details!
I was able to locate a MacPro G5 with a working MacOS X 10.5.8 Leopard.
Interrogating 'Terminal' on this computer, I'm getting these results:
bash --version
3.2.17(1)-release
echo ${BASH_VERSION}
GNU bash, version 3.2.17(1)-release (powerpc-apple-darwin9.0)
At </bin> on this computer I was able to copy the 'bash' for further use with "HyperCard Converter.app" to built a standalone with the "MacOS X Tiger" option.
On a Mac Mini G4 running MacOS X 10.4.6 Tiger, when I launch the new standalone, I am getting those result form the "message box":
unixTask("", hfsToPosix(the application & "Contents:Resources:bash"), "-c", "bash --version")
-> EMPTY
unixTask("", hfsToPosix(the application & "Contents:Resources:bash"), "-c", "echo ${BASH_VERSION}")
-> EMPTY
unixTask("", "/bin/bash", "-c", "echo ${BASH_VERSION}")
-> 2.05b.0(1)-release
unixTask("", "/bin/bash", "-c", "bash --version")
-> GNU bash, version 2.05b.0(1)-release (powerpc-apple-darwin8.0)
Now the same series of tests on a MacPro 2013, running MacOS X 10.14.6:
unixTask("", hfsToPosix(the application & "Contents:Resources:bash"), "-c", "bash --version")
-> GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin18)
unixTask("", hfsToPosix(the application & "Contents:Resources:bash"), "-c", "echo ${BASH_VERSION}")
unixTask("", "/bin/bash", "-c", "echo ${BASH_VERSION}")
-> 3.2.57(1)-release
unixTask("", "/bin/bash", "-c", "bash --version")
-> GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin18)
----------
My understanding of those tests is that the added 'Ressources' 'bash' is not responding when called, in the case of the PPC Mac G4 the result returned is 'EMPTY' and in the case of the MacPro Intel, probably because the added 'bash' file isn't 'universal', the unixTask() function is reverting to the system installed 'bash' file at </bin>.
With the standalone, if I am testing the :
At this point this is over my competence, as when using that line in 'Terminal', I am getting this error:
fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: can't open input file: x86_app (No such file or directory)
I have xCode 11.3.1 installed.
I am also going the work further on this!
----------
Meanwhile, any clue will be welcome!
Many thanks
André