From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29155 invoked from network); 16 Dec 2008 19:27:48 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 16 Dec 2008 19:27:48 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 71883 invoked from network); 16 Dec 2008 19:27:43 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 16 Dec 2008 19:27:43 -0000 Received: (qmail 29531 invoked by alias); 16 Dec 2008 19:27:38 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 26144 Received: (qmail 29517 invoked from network); 16 Dec 2008 19:27:38 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 16 Dec 2008 19:27:38 -0000 Received: from mail-ew0-f16.google.com (mail-ew0-f16.google.com [209.85.219.16]) by bifrost.dotsrc.org (Postfix) with ESMTP id 65615801E288 for ; Tue, 16 Dec 2008 20:27:33 +0100 (CET) Received: by ewy9 with SMTP id 9so3593353ewy.21 for ; Tue, 16 Dec 2008 11:27:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=JoW4lbfJnzGB3CxkPia0E5xoKQK0Q6nV9BwQLHRIRNw=; b=MDCF5DDYrTWj6PcPizUjsk1e/Z8shWY27vufpyVfznclrz0rtd3V8F0NE2pDanZllH 5qzAPDkPCuIVx9jpPpR9JpaDsckZ12rq6qcz6D5GQsvlPpqxSiYTg8wiXG/XYk63jF7/ WcpnP8MIAOU8mz7/sikLAIHpXLq1j3/M9si08= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=Qqld/SIb8//P2W07+5zM6EOmiLzAOWHOUHZZ5V6V9tYw7QB3cttMPIvsw7ktpsalUH /8QA/ipyNAYRwD5EenyT6UGQQ/kTIV029halfRz4Hpfst7tV1n/jTz6lrjnKl15oEZSu 6tdGUiqgqAFWOF4NX37WS7/wdtT55CE+MKrps= Received: by 10.210.51.18 with SMTP id y18mr9656848eby.103.1229455653109; Tue, 16 Dec 2008 11:27:33 -0800 (PST) Received: by 10.210.82.6 with HTTP; Tue, 16 Dec 2008 11:27:33 -0800 (PST) Message-ID: <237967ef0812161127l2a795ees363d039b1ddd4cc1@mail.gmail.com> Date: Tue, 16 Dec 2008 20:27:33 +0100 From: "Mikael Magnusson" To: zsh-workers@sunsite.dk Subject: Re: PATCH: edit-command-line with spaces in EDITOR In-Reply-To: <237967ef0812160907s6481321dnf796fcdcbb93fb1f@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20081216153846.GA10426@scru.org> <237967ef0812160907s6481321dnf796fcdcbb93fb1f@mail.gmail.com> X-Virus-Scanned: ClamAV 0.92.1/8767/Tue Dec 16 14:52:17 2008 on bifrost X-Virus-Status: Clean 2008/12/16 Mikael Magnusson : > 2008/12/16 Clint Adams : >> Apparently people want to set EDITOR to things like >> "connect-emacs editor -t". > > I'm not convinced this is a good idea. If the binary or path to it > contains a space, you just broke it. It's probably better to just tell > people to make a short wrapper script. Also, if some apps parse spaces > in EDITOR and others don't, then you effectively have to _both_ keep > the path+binary space-free and not give any arguments. That seems > suboptimal. FWIW git interprets spaces in EDITOR but... AFAIK it has > always been the name of a binary and nothing more. I had a feeling I was forgetting something when I was typing that, just realized what it was; % EDITOR="connect-emacs editor -t" % $EDITOR myfile zsh: command not found: connect-emacs editor -t I guess you can still type $=EDITOR though... -- Mikael Magnusson