How to create a string with a single backslash?
Posted: Tue Sep 15, 2009 9:48 am
Hello,
I found a problem: I need to create a string with "\".
See here:
Well, I tried in many ways, but I get an error, or I get a string with a double "\\" instead a single "\". I need it to create a Windows network path:
\\myserver\shared_dir\myfile.txt
It seems incredible, but I cannot find a way, in windows (but I even made some tests in Liunux and the results are similar) to compose that string.
Please can you help me?
Thank you!
I found a problem: I need to create a string with "\".
See here:
Code: Select all
> (setq a (string "1" {\} "2"))
"1\\2"
\\myserver\shared_dir\myfile.txt
It seems incredible, but I cannot find a way, in windows (but I even made some tests in Liunux and the results are similar) to compose that string.
Please can you help me?
Thank you!