On Sun, Oct 16, 2016 at 05:47:01PM -0400, Jon LaBadie wrote:
> I played around with your sequence and confirmed your observation.
> Changing the quotes from double to single quotes seems to get
> what you are looking for.
> Again that would go along with preserving backslashes during one
> round of evaluation.  In a double quoted string parsed by the shell,
> depending on the following character, a backslash may be escaping the
> next character or may be literal.  Using single quotes removes the
> ambiguity and makes them literal irrespective of the next char.

Hi Jon,
thank you for your time. Indeed using single quotes solves the issue.
But i couldn't imagine such a simple regex would have lead to this
problem. I'll pay extra attention in the future buiding the patterns.
Thanks again.

Reply via email to