You might not have much luck building bash as a standalone executable
for windows since it relies on some posix functionality that windows
does not have, hence Msys2 Cygwin posix libraries are needed and
unfortunatly those only come as a dll. There was an old project called
downhill which emulated enough of the posix library to make stuff such
as bash work without the dll on windows, unfortuanatly development on
downhill was halted over a decade ago, and the only bash that was ported
to windows using it was the old bash-3.0.

You could pick up the source code for downhill from here
https://sourceforge.net/projects/unxutils/files/unxutils/current/UnxUtilsSrc.zip/download
and try to get it working with later bash versions, but the source is
from a time where 64 bit was not a thing so if you intend to do a 64 bit
windows bash expect a lot of work ahead of you.

Den 07-12-2019 kl. 16:34 skrev Amit Choudhary:
> Hi,
>
> I am new to MSYS2.
>
> I was trying to get source code of bash that is used in MSYS2. I
> wanted to compile it in static mode for use on another computer
> without requiring any extra dll/library. I downloaded
> https://github.com/msys2/MSYS2-packages. But in bash directory, it
> looks like it has patches only.
>
> How can I get the full source code of bash used in MSYS2. Please let me know.
>
> Regards,
> Amit
>
>
> _______________________________________________
> Msys2-users mailing list
> Msys2-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/msys2-users



_______________________________________________
Msys2-users mailing list
Msys2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/msys2-users

Reply via email to