From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rob Wolfe Newsgroups: gmane.emacs.help Subject: Re: Starting emacs in ediff mode. Date: Thu, 24 Jan 2008 19:50:02 +0100 Organization: "Portal Gazeta.pl -> http://www.gazeta.pl" Message-ID: <87ve5j2h45.fsf@merkury.smsnet.pl> References: <7b79188f-cb09-46ae-b88c-65b611b39ae1@d4g2000prg.googlegroups.com> <560a3e25-00da-4f6e-9f1a-8f62ac298bd8@c4g2000hsg.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1201203654 897 80.91.229.12 (24 Jan 2008 19:40:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 24 Jan 2008 19:40:54 +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 Jan 24 20:41:14 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JI7wf-0006Ga-9e for geh-help-gnu-emacs@m.gmane.org; Thu, 24 Jan 2008 20:41:05 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JI7wF-00035k-7v for geh-help-gnu-emacs@m.gmane.org; Thu, 24 Jan 2008 14:40:39 -0500 Original-Path: shelby.stanford.edu!headwall.stanford.edu!fu-berlin.de!newsfeed.pionier.net.pl!newsfeed.gazeta.pl!news.gazeta.pl!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 33 Original-NNTP-Posting-Host: ip-79-175-204-255.cable.smsnet.pl Original-X-Trace: inews.gazeta.pl 1201200609 22579 79.175.204.255 (24 Jan 2008 18:50:09 GMT) Original-X-Complaints-To: usenet@agora.pl Original-NNTP-Posting-Date: Thu, 24 Jan 2008 18:50:09 +0000 (UTC) Cancel-Lock: sha1:5DoJnCnyxB203Tb4g5q1pqXoSp4= X-User: rw8899 User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/22.1 (gnu/linux) Original-Xref: shelby.stanford.edu gnu.emacs.help:155517 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:50922 Archived-At: DaLoverhino writes: [...] > Thanks. It works from the command line, but when I put it in a shell, > it doesn't seem to work. Do you know what is going on? > > #!/bin/bash > > fileA=$1 > fileB=$2 > > if [[ -z "$fileA" && -z "$fileB" ]] > then > echo "Need two files to ediff." > exit 1 > fi > > > > evalArg="'(ediff-files \"$fileA\" \"$fileB\" )'" > > echo emacs --geometry 150x80 --eval $evalArg > > emacs --geometry 150x80 --eval $evalArg > > exit 0 Try this: emacs --geometry 150x80 --eval "(ediff-files \"$fileA\" \"$fileB\")" HTH, Rob