From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Problem quoting expression to be eval'ed by emacsclient Date: Thu, 24 Oct 2013 05:52:04 +0300 Message-ID: <838uxjidnv.fsf@gnu.org> References: <86y55kcrpc.fsf@somewhere.org> <87a9i02wu4.fsf@gmail.com> <86wql3tzwf.fsf@somewhere.org> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1382583156 29896 80.91.229.3 (24 Oct 2013 02:52:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 24 Oct 2013 02:52:36 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Oct 24 04:52:40 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VZB2O-0003NK-6p for geh-help-gnu-emacs@m.gmane.org; Thu, 24 Oct 2013 04:52:40 +0200 Original-Received: from localhost ([::1]:52273 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VZB2N-0001De-KU for geh-help-gnu-emacs@m.gmane.org; Wed, 23 Oct 2013 22:52:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36807) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VZB27-0001CW-TY for help-gnu-emacs@gnu.org; Wed, 23 Oct 2013 22:52:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VZB20-0000iv-8u for help-gnu-emacs@gnu.org; Wed, 23 Oct 2013 22:52:23 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:60093) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VZB20-0000i4-0y for help-gnu-emacs@gnu.org; Wed, 23 Oct 2013 22:52:16 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0MV500300JQ75K00@a-mtaout21.012.net.il> for help-gnu-emacs@gnu.org; Thu, 24 Oct 2013 05:52:14 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MV5003USJZ20T50@a-mtaout21.012.net.il> for help-gnu-emacs@gnu.org; Thu, 24 Oct 2013 05:52:14 +0300 (IDT) In-reply-to: <86wql3tzwf.fsf@somewhere.org> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.169 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:94185 Archived-At: > From: "Sebastien Vauban" > Date: Wed, 23 Oct 2013 23:56:16 +0200 > > Eli Zaretskii wrote: > >> From: Thorsten Jolitz > >> Date: Wed, 23 Oct 2013 10:52:19 +0200 > >> > >>> I'm trying to evaluate an expression via `emacsclient' (from a Zsh shell), > >>> for example: > >>> > >>> $ emacsclient -e "(message \"hello\")" > >> > >> This works for me (bash): > >> > >> #+begin_src sh > >> $ emacsclient -s my-server -e "(message \"hello\")" > >> "hello" > >> #+end_src > > > > But you aren't on Windows, are you? > > If you're asking the question to me, then yes, I'm on Windows. You evidently are, but I thing Thorsten isn't. > But the above tests I made are from a Cygwin Zsh session. And emacsclient was a Cygwin build or a native build? If the latter, your problems could be due to this mix. (Your example works for me from cmd and even from MSYS Bash.)