Re: [PATCH] git-parse-remote: fix ambiguous shell bug in expand_refs_wildcard
- From
Jeff King <peff@peff.net>
- Date
- Dec 18, 2006, 08:16 UTC
- Message-ID
- <20061218081627.GB3857@coredump.intra.peff.net>
- In-Reply-To
- <20061218080941.GA3857@coredump.intra.peff.net>
On Mon, Dec 18, 2006 at 03:09:41AM -0500, Jeff King wrote:
> - if test "z$name" != "z${name%'^{}'}" ||
> + if test "z$name" != "z${name%'^{\}'}" ||Urgh, sorry, this is wrong. It should be:
${name%^{\}}
IOW, the \ replaces the quote, not in addition to.