From: David Kastrup <dak@gnu.org>
Cc: Emacs Devel <emacs-devel@gnu.org>
Subject: Re: Is there any way to have a string literal that is read "raw"
Date: Fri, 08 Jul 2005 18:43:23 +0200 [thread overview]
Message-ID: <85slypdz9w.fsf@lola.goethe.zz> (raw)
In-Reply-To: <42CEAAE1.2050801@student.lu.se> (Lennart Borgman's message of "Fri, 08 Jul 2005 18:33:37 +0200")
Lennart Borgman <lennart.borgman.073@student.lu.se> 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
next prev parent reply other threads:[~2005-07-08 16:43 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-08 14:16 Is there any way to have a string literal that is read "raw" Lennart Borgman
2005-07-08 15:07 ` David Kastrup
2005-07-08 15:49 ` Lennart Borgman
2005-07-08 16:12 ` David Kastrup
2005-07-08 16:33 ` Lennart Borgman
2005-07-08 16:43 ` David Kastrup [this message]
2005-07-08 16:40 ` Lennart Borgman
2005-07-08 22:01 ` Richard M. Stallman
2005-07-08 22:25 ` Lennart Borgman
2005-07-09 17:01 ` Richard M. Stallman
2005-07-09 17:40 ` Lennart Borgman
2005-07-10 17:34 ` Richard M. Stallman
2005-07-10 21:28 ` Lennart Borgman
2005-07-11 16:54 ` Richard M. Stallman
2005-07-11 19:49 ` Eli Zaretskii
2005-07-12 3:20 ` Richard M. Stallman
2005-07-09 5:22 ` Sean O'Rourke
2005-07-10 5:19 ` Richard M. Stallman
2005-07-09 8:02 ` Markus Gritsch
2005-07-09 9:16 ` David Kastrup
2005-07-09 16:28 ` Lennart Borgman
2005-07-09 16:49 ` David Kastrup
2005-07-10 5:19 ` Richard M. Stallman
2005-07-10 6:59 ` Sean O'Rourke
2005-07-10 8:24 ` David Kastrup
2005-07-11 5:35 ` Richard M. Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=85slypdz9w.fsf@lola.goethe.zz \
--to=dak@gnu.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).