[Mingw-users] Shell is stripping curly braces in Git for Windows

Back to archive index

Robert Dailey rcdai****@gmail*****
Sat Apr 14 00:42:18 JST 2018

Disclaimer: I'm not familiar with the architecture of mingw and its
dependencies. The only thing I'm aware of is that I have found a bug
specifically within the context of Git for Windows, which I believe
packages Mingw inside it. I have also determined that this bug is
*not* specific to git.exe itself, but rather how it invokes commands
to the shell when you use aliases. My analysis may be incorrect but
I'm sharing things the best I can.

First, there's a long-standing issue over on the Git for Windows
project page here:

The gist of the problem is that invoking aliases in Git using curly
brackets results in those curly brackets being stripped out. Example:

$ git myalias @{-1}

This results in:

"git myalias @-1"

This does not happen when I do not use an alias, it only occurs
through an alias that results in sh.exe being invoked to run
subcommands after the alias has been processed.

I'm bringing up this issue on the Mingw users list for 2 reasons:

1. To confirm whether or not this is a bug that Mingw can fix
2. If it's a Mingw, I need permission to create this as a bug on the
mingw project page (the create issue button is disabled and says I
lack permissions): https://sourceforge.net/p/mingw/bugs/

Could any developers or advanced users comment on this issue? The
linked github bug is a rather long read, so I'm happy to summarize
details where I can.

More information about the MinGW-Users mailing list
Back to archive index