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 17:03:48 +0100 Message-ID: <871uw8jh23.fsf@ucl.ac.uk> References: <877h62wv8y.fsf@Rainer.invalid> <20110824184808.GB89772@kenny.local> <87aaaw8hoh.fsf@ucl.ac.uk> <8739godwzj.fsf@Rainer.invalid> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:55197) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qwysu-0003iD-2j for emacs-orgmode@gnu.org; Fri, 26 Aug 2011 12:03:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qwyss-0006mt-Qr for emacs-orgmode@gnu.org; Fri, 26 Aug 2011 12:03:56 -0400 Received: from vscane-b.ucl.ac.uk ([144.82.108.141]:33323) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qwyss-0006mX-MO for emacs-orgmode@gnu.org; Fri, 26 Aug 2011 12:03:54 -0400 In-Reply-To: <8739godwzj.fsf@Rainer.invalid> (Achim Gratz's message of "Fri, 26 Aug 2011 17:16:16 +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: Achim Gratz Cc: emacs-orgmode@gnu.org Achim Gratz writes: > Eric S Fraga writes: >> The even simpler solution worked for me: >> >> emacs --eval '(find-file "/home/somefile.org")' > > ...as I had already said (this also has the charm of working in other > shells, like tcsh). Ah, sorry, I missed that! >> 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? > > For this simple example it's a wash, but sometimes you can't use single > quotes (for instance if you want to have variable expansion) and then > you will still need to know how to escape stuff. Indeed! -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 : using Org-mode version 7.7 (release_7.7.205.gce02a)