unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Problem quoting expression to be eval'ed by emacsclient
@ 2013-10-23  8:33 Sebastien Vauban
  2013-10-23  8:52 ` Thorsten Jolitz
  2013-10-23 10:14 ` Andreas Röhler
  0 siblings, 2 replies; 14+ messages in thread
From: Sebastien Vauban @ 2013-10-23  8:33 UTC (permalink / raw)
  To: help-gnu-emacs-mXXj517/zsQ

Hello,

I'm trying to evaluate an expression via `emacsclient' (from a Zsh shell),
for example:

--8<---------------cut here---------------start------------->8---
$ emacsclient -e "(message \"hello\")"
--8<---------------cut here---------------end--------------->8---

But all I get is:

  *ERROR*: End of file during parsing

Using `bash -x', I see that's due to a quoting problem:

--8<---------------cut here---------------start------------->8---
$ bash -x emacsclient -e "(message \"hello\")"
+ 'C:/Program Files (x86)/emacs-trunk/bin/emacsclient' -e '(message' '"hello")'

*ERROR*: End of file during parsing

$ bash -x emacsclient -e '(message \"hello\")'
+ 'C:/Program Files (x86)/emacs-trunk/bin/emacsclient' -e '(message' '\"hello\")'

*ERROR*: End of file during parsing

$ bash -x emacsclient -e \"(message \"hello\")\"
zsh: no matches found: "(message "hello")"

$ bash -x emacsclient "-e \"(message \"hello\")\""
+ 'C:/Program Files (x86)/emacs-trunk/bin/emacsclient' -e '"(message' '"hello")"'

*ERROR*: End of file during parsing
--8<---------------cut here---------------end--------------->8---

But I don't see how to pass the right expression to `emacsclient'. Is there
anybody able to help me sort this out?  TIA!

Best regards,
  Seb

-- 
Sebastien Vauban


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2013-11-07 15:44 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-23  8:33 Problem quoting expression to be eval'ed by emacsclient Sebastien Vauban
2013-10-23  8:52 ` Thorsten Jolitz
2013-10-23 14:07   ` Tassilo Horn
2013-10-23 15:33   ` Eli Zaretskii
     [not found]   ` <mailman.4544.1382542407.10748.help-gnu-emacs@gnu.org>
2013-10-23 21:56     ` Sebastien Vauban
2013-10-24  2:52       ` Eli Zaretskii
     [not found]       ` <mailman.4580.1382583151.10748.help-gnu-emacs@gnu.org>
2013-10-25 12:37         ` Sebastien Vauban
2013-10-25 13:47           ` Eli Zaretskii
     [not found]           ` <mailman.4697.1382708854.10748.help-gnu-emacs@gnu.org>
2013-10-30  9:59             ` Sebastien Vauban
2013-10-30 11:38               ` Stefan Monnier
2013-10-30 18:55               ` Eli Zaretskii
     [not found]               ` <mailman.4965.1383133220.10748.help-gnu-emacs@gnu.org>
2013-11-07 15:37                 ` Sebastien Vauban
     [not found]               ` <mailman.4986.1383159329.10748.help-gnu-emacs@gnu.org>
2013-11-07 15:44                 ` Sebastien Vauban
2013-10-23 10:14 ` Andreas Röhler

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).