On Fri, Mar 02, 2018 at 05:05:46PM +0100, Harald van Dijk wrote:
>
> But in "${x+${y-}''}", the ' is the literal ' character. In "${x#${y-}''}",
> the ' is a quote character. This part is hard. If the above is done simply
> using another local variable, then the parse of the nested ${y-} would
> clobber that variable.I don't see why that's hard. You just need to remember whether you're in a pattern context (i.e., after a %/%% or #/##). If you are, then you need to go back to basesyntax instead of dqsyntax until the next right brace. Cheers, -- Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line "unsubscribe dash" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
