Matthew Woehlke wrote:
> How should bash interpret escapes in constructs like "`...`"?

The quoting rules for backticks are complex enough that the entire
construct has long been replaced with a completely different one.  I
strongly suggest that instead of struggling to get the backtick syntax
quoted satisfactorily that you use $(...) instead.  The rules there
are much more reasonable.

> $ echo "`echo "you don't   say"`"
> you don't   say

  echo "$(echo "you don't   say")"

> Is this how it is supposed to work?

Patient: Doctor, it hurts when I do this.
Doctor: Then don't do that.

Switch to using $(...) and you will be much less troubled by these
types of problems.

Bob

Reply via email to