help-make
[Top][All Lists]
Advanced

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

Replacing \ by \\ in variables


From: Rodrigo de Salvo Braz
Subject: Replacing \ by \\ in variables
Date: Thu, 18 Oct 2007 01:43:59 -0700

Hi,

How can I replace \ by \\ in variables values?

For example,

var= \value

target:
        echo $(variable)
        echo $(subst \\,\\\\,$(variable))

gives me

echo \value
\value
echo \value
\value

But I would like to see

echo \value
\value
echo \\value
\\value

Thanks!

Rodrigo




reply via email to

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