On Mon, Nov 22, 2021 at 05:03:28PM -0800, skybuck2000 wrote:
[...]
> There are two environments on my machine I think:
>
> Environment 1: git-bash.exe which may run inside some kind of linux
> terminal/emulator/mingw which runs git.exe inside this mingw emulator.
MinGW is a software package developed to help port POSIX-compatible software
to the Windows platform with as less modifications as possible - while still
remaining native to the target platform.
MinGW stands for "Minimalist GNU for Windows"; GNU is a bit out-of-place in
that context though, because GNU is a software project which strives to
eventually produce a complete operating system which is "free-as-in-freedom".
In the context of MinGW, 'G' is better thought of as standing for "GCC" which
is a GNU Compiler Collection - a free implementation of compilers for several
popular programming languages, including C and C++.
Last time I checked, Git for Windows was built using MinGW, and I would say
it's the only place where MinGW appears in the picture when we're talking
about Git on Windows.
Regarding the other two points - Git for Windows does come with a Windows port
of bash which is a command-line shell typically used in Linux-based operating
systems, and MinTTY - which is Unix terminal emulator for Windows.
The Bash shell shipped with GfW is called "Git Bash" - primarily because the
devs had to give that thing a name to be able to display it in various context
menus displayed by Windows Explorer (the graphical shell providing the user
with the desktop, start menu, taskbar etc).
Still, on Windows, bash can be run both in MinTTY and in a standard console
window (cmd.exe).
The only thing which could be called "emulator" here is MinTTY - as it indeed
emulates a hardware Unix terminal.
> Environment 2: cmd.exe which runs inside windows/ms-dos terminal which runs
> git.exe
I recommend to refrain from using the term "MS-DOS" when talking about the
stock console program, cmd.exe, - unless you're running Windows 95 or 98 (or
ME): all flavors of Windows based on NT kernel series (Windows NT since 1.0
and "desktop" flavors beginning with Windows 2000) have nothing to do with
MS-DOS, just the command set and batch file syntax supported in cmd.exe
reproduces that of the last release of MS-DOS quite faithfully, but still it's
a 100% Windows-native implementation.
[...]
---
While we're at it, can I please ask you to refrain from bursting short e-mails
following your research and thought process? This is a mailing list, not a
chat; most folks check it only occasionally, and it's not convenient to see
like 5 or 6 e-mail replies to a single message - all dealing with the same
problem. Honestly, I got lost on may be the third of them; I would much prefer
a single thought-out reply with the final set of observations, conclusions and
further questions, if any, based on them.
Thanks in advance.