[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Replacing \ by \\ in variables
From: |
Paul Smith |
Subject: |
Re: Replacing \ by \\ in variables |
Date: |
Thu, 18 Oct 2007 08:53:29 -0400 |
On Thu, 2007-10-18 at 01:43 -0700, Rodrigo de Salvo Braz wrote:
> echo $(subst \\,\\\\,$(variable))
You don't need to escape backslashes here:
echo '$(subst \,\\,$(variable))'
Note the single quotes, or the shell will mess with the backslashes.
--
-------------------------------------------------------------------------------
Paul D. Smith <address@hidden> Find some GNU make tips at:
http://www.gnu.org http://make.mad-scientist.us
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist