From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2870 invoked from network); 17 Dec 2008 04:04:37 -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.5 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; 17 Dec 2008 04:04:37 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 16160 invoked from network); 17 Dec 2008 04:04:29 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 17 Dec 2008 04:04:29 -0000 Received: (qmail 23522 invoked by alias); 17 Dec 2008 04:04:24 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 26148 Received: (qmail 23513 invoked from network); 17 Dec 2008 04:04:24 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 17 Dec 2008 04:04:24 -0000 Received: from vms173003pub.verizon.net (vms173003pub.verizon.net [206.46.173.3]) by bifrost.dotsrc.org (Postfix) with ESMTP id 28F90801E288 for ; Wed, 17 Dec 2008 05:04:19 +0100 (CET) Received: from torch.brasslantern.com ([96.238.220.215]) by vms173003.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0KC000IHJ5YX4M72@vms173003.mailsrvcs.net> for zsh-workers@sunsite.dk; Tue, 16 Dec 2008 22:04:14 -0600 (CST) Received: from torch.brasslantern.com (localhost.localdomain [127.0.0.1]) by torch.brasslantern.com (8.13.1/8.13.1) with ESMTP id mBH448lS018685 for ; Tue, 16 Dec 2008 20:04:09 -0800 Received: (from schaefer@localhost) by torch.brasslantern.com (8.13.1/8.13.1/Submit) id mBH4477G018684 for zsh-workers@sunsite.dk; Tue, 16 Dec 2008 20:04:07 -0800 Date: Tue, 16 Dec 2008 20:04:07 -0800 From: Bart Schaefer Subject: Re: PATCH: edit-command-line with spaces in EDITOR In-reply-to: <20081216214517.GA14544@scru.org> To: zsh-workers@sunsite.dk Message-id: <081216200407.ZM18683@torch.brasslantern.com> MIME-version: 1.0 X-Mailer: OpenZMail Classic (0.9.2 24April2005) Content-type: text/plain; charset=us-ascii References: <20081216153846.GA10426@scru.org> <237967ef0812160907s6481321dnf796fcdcbb93fb1f@mail.gmail.com> <20081216214517.GA14544@scru.org> Comments: In reply to Clint Adams "Re: PATCH: edit-command-line with spaces in EDITOR" (Dec 16, 9:45pm) X-Virus-Scanned: ClamAV 0.92.1/8770/Wed Dec 17 01:38:25 2008 on bifrost X-Virus-Status: Clean On Dec 16, 9:45pm, Clint Adams wrote: } } Are you aware of any applications which _do not_ split EDITOR on spaces } or is this all theoretical? I suspect that most applications do the equivalent of eval "$EDITOR $1" which accomplishes the splitting of $EDITOR at some security risk if the environment is tainted. Then the spaces-in-the-path problem is solvable by embedding quotes or backslashes in the value of $EDITOR. Zsh could meet the two extremes halfway by using ${(Q)${(z)EDITOR}}.