On Fri, 06 Jan 2012 15:18:13 +0100
Per Olofsson <pe...@dsv.su.se> wrote:
> Hmm, perhaps it is better to use awk here. How about this:
> 
> arguments_exec=`echo $arguments | awk -v url="$1" \
>       '{gsub(/%[fFuU]/, url); print}'`

I think the problem stays the same, as GNU awk also replaces ampersands
by the matched pattern (and \1 to \9 are also replaced by matched
groups with awk).

I did a quick research myself revealing that it is a somehow frequent
problem, but I found no solution other than escaping URL first.
Apparently, the only two characters to be escaped are & and \ (both for
sed and for awk).

Regards,
-- 
"As we enjoy great Advantages from the Inventions of others, we should
 be glad of an Opportunity to serve others by any Invention of ours;
 and this we should do freely and generously."       Benjamin Franklin

Cyril Soldani <devmusi...@legiasoft.com>
http://devmusings.legiasoft.com/



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to