From mboxrd@z Thu Jan 1 00:00:00 1970 From: Viktor Rosenfeld Subject: Re: problem with find-file in --eval from command line Date: Wed, 24 Aug 2011 20:48:08 +0200 Message-ID: <20110824184808.GB89772@kenny.local> References: <877h62wv8y.fsf@Rainer.invalid> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([140.186.70.92]:35738) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QwIUs-0005jg-7c for emacs-orgmode@gnu.org; Wed, 24 Aug 2011 14:48:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QwIUq-0007SX-Ma for emacs-orgmode@gnu.org; Wed, 24 Aug 2011 14:48:18 -0400 Received: from mail-bw0-f41.google.com ([209.85.214.41]:52632) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QwIUq-0007SL-Ev for emacs-orgmode@gnu.org; Wed, 24 Aug 2011 14:48:16 -0400 Received: by bkbzt4 with SMTP id zt4so1345935bkb.0 for ; Wed, 24 Aug 2011 11:48:14 -0700 (PDT) Content-Disposition: inline In-Reply-To: <877h62wv8y.fsf@Rainer.invalid> 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 Hi, This works on Bash (tested on 4.2.10) and should be easy to remember: emacs --eval "(find-file \"/home/somefile.org\" )" Cheers, Viktor Achim Gratz wrote: > Bash needs this instead > > emacs --eval "( find-file "'"'"/home/somefile.org"'"'" ) " > > THere may be other solutions for bash, but I never really got the hang > of their quoting rules.