I believe that busybox is produced by the Windows cross-compiler that I have loaded from EPEL. Can gsh be built the same way?
Though I never tried using a cross compiler to compiler GSH should not be an issue
Alas, no ADA.
"Using this toolchain allows you to build binaries for the following programming languages: C, C++, Objective-C, Objective-C++ and Fortran."
https://fedoraproject.org/wiki/MinGW/Tutorial
I think all of these packages were pulled in the "yum install":
$ rpm -qa | grep ming | sort
mingw64-binutils-2.41-3.el9.x86_64
mingw64-cpp-13.2.1-7.el9.x86_64
mingw64-crt-11.0.1-3.el9.noarch
mingw64-filesystem-148-3.el9.noarch
mingw64-gcc-13.2.1-7.el9.x86_64
mingw64-headers-11.0.1-3.el9.noarch
mingw64-libgcc-13.2.1-7.el9.x86_64
mingw64-winpthreads-11.0.1-3.el9.noarch
mingw64-winpthreads-static-11.0.1-3.el9.noarch
mingw-binutils-generic-2.41-3.el9.x86_64
mingw-filesystem-base-148-3.el9.noarchhttps://news.ycombinator.com/item?id=43910883 (similar comment about Rust)
Bash arrays are extremely hairy, with many corner cases, and differ from bash version to version.
And in particular, the shell code in Nix DOES RELY on these corners (e.g. https://www.oilshell.org/blog/2024/06/release-0.22.0.html)
---
I mentioned in another comment that Koichi Murase, who is a bash contributor, and wrote the largest shell program in the world, just overhauled the bash array support in OSH
A few relevant test files -- Koichi added a huge number recently:
https://oils.pub/release/0.29.0/test/spec.wwz/osh-py/array-s...
https://oils.pub/release/0.29.0/test/spec.wwz/osh-py/array-a...
https://oils.pub/release/0.29.0/test/spec.wwz/osh-py/ble-idi...
Our tests are thorough enough that we ROUTINELY find bugs in bash, like integer overflow bugs.
Koichi also knows about the differences between say bash 4.3, 4.4, 5.0, 5.1, etc. Because he wrote a very large program that uses bash arrays all over the place.
---
Feel free to use our tests in any case (other shells like the Scheme shell used to bootstrap Guix have)
And feel free to post a message to https://github.com/oils-for-unix/oils if you're interested or have questions
And I did a bunch of research on it (e.g. https://lobste.rs/s/qjzd9y/everyone_quotes_command_line_argu... )
I did notice that git for windows uses a bash built with MSYS. And I noticed that Python's subprocess module implements pipelines with native Win32, not with MSYS.
So that is something we can do in Oils, in theory
I won't say it's high priority, but of course it's an open source project, and users often change the priorities
Two things that would really help are (1) finding a skilled Win32 programmer and (2) getting another grant (we've gotten 3 in the past)