Re: [PATCH v2] mergetools: add winmerge as a builtin tool
- From
SZEDER Gábor <szeder@ira.uka.de>
- Date
- May 14, 2015, 21:24 UTC
- Message-ID
- <1431638653-9356-1-git-send-email-szeder@ira.uka.de>
- In-Reply-To
- <CAHGBnuPDSdCyVNM+Gagang1Cf9yw0Tyios45i6pnZSSzaJJC2Q@mail.gmail.com>
Show 15 quoted lines
> On Wed, May 13, 2015 at 5:22 PM, Johannes Schindelin <johannes.schindelin <at> gmx.de> wrote:
>
> > In my tests, "$PROGRAMFILES(X86)" did *not* work:
> >
> > $ echo "$PROGRAMFILES(X86)"
> > bash: syntax error near unexpected token `('
>
> Interesting. In both MSYS1/2 Git Bashes I get on Windows 7 64-bit:
>
> $ echo "$PROGRAMFILES(X86)"
> C:\Program Files (x86)(X86)
>
> So it seems to resolve only the $PROGRAMFILES part and appending the
> literal "(X86)". Not sure how to tell Bash that "(X86)" is part of the
> variable name.It would be ${PROGRAMFILES(X86)}, but POSIX says that variable names can only contain alphanumeric characters and underscores, and Bash adheres when it complains about it in Johannes' example above. Not sure whether there is a clever escaping that could make it work, I couldn't find any.
G�bor