[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is there any way to have a string literal that is read "raw"
From: |
David Kastrup |
Subject: |
Re: Is there any way to have a string literal that is read "raw" |
Date: |
Fri, 08 Jul 2005 18:43:23 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
Lennart Borgman <address@hidden> writes:
> In that example there are paths in MSYS format (ie unix
> format). However you can replace `pwd` with `pwd -W` and get those in
> w32 format. Then you get the problem I am thinking of. But thinking
> about it again this could perhaps be solved (worked around) by writing
> just a small exe that provides path info in Emacs style and compile
> this in configure.bat? Would that be possible?
>
>>emacs --eval '(do-something-with (pop command-line-args-left))' "$FILENAME"
>>
>>
> The problem is the strings are inside the eval in my example.
Well, then move them out. That's the whole point of the above
construct: getting a string _verbatim_ from the environment without
any interpretation of quotes or backslashes or similar. The above has
not been written as
emacs --eval "(do-something-with \"$FILENAME\")"
for good reason.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
Re: Is there any way to have a string literal that is read "raw", Richard M. Stallman, 2005/07/08
- Re: Is there any way to have a string literal that is read "raw", Lennart Borgman, 2005/07/08
- Re: Is there any way to have a string literal that is read "raw", Richard M. Stallman, 2005/07/09
- Re: Is there any way to have a string literal that is read "raw", Lennart Borgman, 2005/07/09
- Re: Is there any way to have a string literal that is read "raw", Richard M. Stallman, 2005/07/10
- Re: Is there any way to have a string literal that is read "raw", Lennart Borgman, 2005/07/10
- Re: Is there any way to have a string literal that is read "raw", Richard M. Stallman, 2005/07/11
- Re: Is there any way to have a string literal that is read "raw", Eli Zaretskii, 2005/07/11
- Re: Is there any way to have a string literal that is read "raw", Richard M. Stallman, 2005/07/11
Re: Is there any way to have a string literal that is read "raw", Sean O'Rourke, 2005/07/09