From mboxrd@z Thu Jan 1 00:00:00 1970 From: Achim Gratz Subject: Re: problem with find-file in --eval from command line Date: Fri, 26 Aug 2011 17:16:16 +0200 Message-ID: <8739godwzj.fsf@Rainer.invalid> References: <877h62wv8y.fsf@Rainer.invalid> <20110824184808.GB89772@kenny.local> <87aaaw8hoh.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:46924) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qwy92-0004IM-2W for emacs-orgmode@gnu.org; Fri, 26 Aug 2011 11:16:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qwy90-0005u8-U1 for emacs-orgmode@gnu.org; Fri, 26 Aug 2011 11:16:32 -0400 Received: from lo.gmane.org ([80.91.229.12]:60844) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qwy90-0005u2-Ow for emacs-orgmode@gnu.org; Fri, 26 Aug 2011 11:16:30 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Qwy8z-0003hI-9f for emacs-orgmode@gnu.org; Fri, 26 Aug 2011 17:16:29 +0200 Received: from p57aabd8a.dip.t-dialin.net ([87.170.189.138]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 26 Aug 2011 17:16:29 +0200 Received: from Stromeko by p57aabd8a.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 26 Aug 2011 17:16:29 +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 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). > 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. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ DIY Stuff: http://Synth.Stromeko.net/DIY.html