Paul Eggert wrote: > Replace foo=` ... sed -e COMPLICATED ... ` with > bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED > contains (possibly-quoted) backslashes.
Thanks, Paul. Nowadays I try to avoid backslashes inside backquote. Correctly parsing backslashes inside backquote (and possibly inside single-quote and possibly inside double-quote inside or outside the double-quote!) is quite tricky [1]. Hardly anyone knows the rules. It was too tempting, back then in 2003, to use bashisms. Bruno [1] http://git.savannah.gnu.org/gitweb/?p=gettext.git;a=blob;f=gettext-tools/src/x-sh.c;hb=HEAD#l333 -- In memoriam Stefano Peluffo <http://www.marxists.org/history/international/comintern/sections/italy/1944/partisans.htm>