Re: [PATCH] git-parse-remote: fix ambiguous shell bug in expand_refs_wildcard
- From
- Herbert Xu <herbert@gondor.apana.org.au>
- Date
- Dec 19, 2006, 00:35 UTC
- Message-ID
- <20061219003557.GA17799@gondor.apana.org.au>
- In-Reply-To
- <20061218224505.GB13034@coredump.intra.peff.net>
On Mon, Dec 18, 2006 at 05:45:05PM -0500, Jeff King wrote:
Show 6 quoted lines
>
> but doing it inside an interpolated string doesn't:
>
> $ foo=bar}
> $ echo "${foo%'}'}"
> bar}'}Yes it's a bug in dash. Both quote marks (" and ') are represented by the same char internally before processing which is where the mix-up occurs.
I'll work on a fix.
Cheers,
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/