bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: quoting inside backquotes in 3.1


From: Eric Blake
Subject: Re: quoting inside backquotes in 3.1
Date: Mon, 06 Mar 2006 00:04:11 +0000

> 
> Your interpretation has evolved.  Consider
> http://lists.gnu.org/archive/html/bug-bash/2005-07/msg00047.html
> when you argue seemingly the exact opposite: that quoted strings should
> be recursively parsed inside ``.

Perhaps it has.  But in that mail from last year, the string in question was:

echo `echo '${'`

But by my current understanding, the answer is still the same - inside
the backticks, no \ appears, so all characters are passed literally
to the subshell between the two ``.  Then, inside the subshell,
you are executing echo '${', which has well-defined semantics,
so the overall output is still ${.  So even though my interpretation
may have refined a bit, the sample in that older email still
results in the same string by either interpretation.

> 
> I will, as I said, look for a backwards-compatible solution.  That may
> involve finding a different way to solve the original problem that
> prompted the change.
> 

I look forward to seeing what you come up with.  I wish I
could help by coming up with a solution myself, but have not
had time to do so yet.

-- 
Eric Blake




reply via email to

[Prev in Thread] Current Thread [Next in Thread]