From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: problem with find-file in --eval from command line Date: Fri, 26 Aug 2011 13:45:50 +0100 Message-ID: <87aaaw8hoh.fsf@ucl.ac.uk> References: <877h62wv8y.fsf@Rainer.invalid> <20110824184808.GB89772@kenny.local> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:42694) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qwwwr-0003PN-Qo for emacs-orgmode@gnu.org; Fri, 26 Aug 2011 09:59:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qwwwq-0006VP-Fj for emacs-orgmode@gnu.org; Fri, 26 Aug 2011 09:59:53 -0400 Received: from vscane-c.ucl.ac.uk ([144.82.108.43]:51883) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qwwwq-0006Uc-Av for emacs-orgmode@gnu.org; Fri, 26 Aug 2011 09:59:52 -0400 Received: from [85.210.131.216] (helo=localhost) by vscane-c.ucl.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1Qwwwh-0002sN-JY for emacs-orgmode@gnu.org; Fri, 26 Aug 2011 14:59:43 +0100 In-Reply-To: <20110824184808.GB89772@kenny.local> (Viktor Rosenfeld's message of "Wed, 24 Aug 2011 20:48:08 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Viktor Rosenfeld writes: > Hi, > > This works on Bash (tested on 4.2.10) and should be easy to remember: > > emacs --eval "(find-file \"/home/somefile.org\" )" The even simpler solution worked for me: emacs --eval '(find-file "/home/somefile.org")' with bash (4.1-3) on Debian Linux (testing+unstable). Not sure why others have needed so many escapes on quotes... note that I'm enclosing the sexp in single quotes. Has something changed in bash from 4.1 to 4.2? -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 : using Org-mode version 7.7 (release_7.7.205.gce02a)