Subject: bug#9480: 24.0.50; (vc-git) stash@{n} - requires shell quoting?

From: Eli Zaretskii <[email-masked]>
Date: Tue, 13 Sep 2011 18:27:17 +0300

> From: Stefan Monnier <[email-masked]>
> Date: Tue, 13 Sep 2011 09:35:11 -0400
> Cc: [email-masked]
> 
> > My shell-file-name is set to "bash" (cygwin version). My Emacs is
> 
> AFAIK this code does not run any shell.

Yes, and that's the problem: by default Cygwin apps glob their
command-line arguments when invoked from a non-Cygwin program,
assuming that those non-Cygwin programs expect them to.

This should generally work fine, except that IMO globbing in this case
is simply buggy: the braces are removed although a real shell would
expand "{0}" into itself.