bug-gnulib
[Top][All Lists]
Advanced

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

Re: MODULES.html.sh broken - unterminated substitute pattern


From: Bruno Haible
Subject: Re: MODULES.html.sh broken - unterminated substitute pattern
Date: Tue, 1 Nov 2011 23:56:56 +0100
User-agent: KMail/1.13.6 (Linux/2.6.37.6-0.5-desktop; KDE/4.6.0; x86_64; ; )

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>



reply via email to

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