Op 26-03-18 om 12:30 schreef Harald van Dijk: > With the snipping it's not clear that I was specifically confused by the > inconsistency. > > I had included another example: > > pat="/de\v" > printf "%s\n" $pat > > I can understand treating backslash as quoted, or treating it as > unquoted, but not quoted-unless-in-a-case-statement. What justifies this > one exception? I don't see any inconsistency. Expansions are consistently treated differently within 'case' than outside it. Among other things, expansions within 'case' are *not* subject to pathname expansion; it's string pattern matching using glob patterns, which is something completely different. - M. -- To unsubscribe from this list: send the line "unsubscribe dash" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html