From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17338 invoked from network); 25 Apr 2005 08:55:03 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 25 Apr 2005 08:55:03 -0000 Received: (qmail 16990 invoked from network); 25 Apr 2005 08:54:57 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 25 Apr 2005 08:54:57 -0000 Received: (qmail 10700 invoked by alias); 25 Apr 2005 08:54:54 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 21181 Received: (qmail 10691 invoked from network); 25 Apr 2005 08:54:54 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 25 Apr 2005 08:54:54 -0000 Received: (qmail 16666 invoked from network); 25 Apr 2005 08:54:54 -0000 Received: from mail36.messagelabs.com (193.109.254.211) by a.mx.sunsite.dk with SMTP; 25 Apr 2005 08:54:47 -0000 X-VirusChecked: Checked X-Env-Sender: okiddle@yahoo.co.uk X-Msg-Ref: server-10.tower-36.messagelabs.com!1114419265!15534228!1 X-StarScan-Version: 5.4.11; banners=-,-,- X-Originating-IP: [158.234.9.163] Received: (qmail 28010 invoked from network); 25 Apr 2005 08:54:26 -0000 Received: from iris.logica.co.uk (158.234.9.163) by server-10.tower-36.messagelabs.com with SMTP; 25 Apr 2005 08:54:26 -0000 Received: from trentino.logica.co.uk ([158.234.142.59]) by iris.logica.co.uk (8.12.3/8.12.3/Debian -4) with ESMTP id j3P8sMZe030793; Mon, 25 Apr 2005 09:54:22 +0100 Received: from trentino.groupinfra.com (localhost [127.0.0.1]) by trentino.logica.co.uk (Postfix) with ESMTP id 6226450DE1; Mon, 25 Apr 2005 10:54:02 +0200 (CEST) X-VirusChecked: Checked X-StarScan-Version: 5.0.7; banners=.,-,- In-reply-to: <20050425084156.GA483@fox> From: Oliver Kiddle References: <20050414134703.GA7862@s> <20050415111158.GA1709@s> <7344.1114415007@trentino.groupinfra.com> <20050425084156.GA483@fox> To: Haakon Riiser Cc: zsh-workers@sunsite.dk Subject: Re: Updated _acroread completer Date: Mon, 25 Apr 2005 10:54:02 +0200 Message-ID: <8730.1114419242@trentino.groupinfra.com> X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-2.6 required=6.0 tests=BAYES_00 autolearn=ham version=3.0.2 X-Spam-Hits: -2.6 Haakon Riiser wrote: > > It doesn't work when acroread is a wrapper script, which it is > in my case. (I used a wrapper instead of a symlink, because the Given that it is very fast compared to running acroread -help, it would be worth trying it and falling back on your method if it fails. > So I'll just have to resolve the symlink using readlink. I assume > the most portable way to do this is perl, unless there is a way ls -l piped to sed is more portable than perl. There's an example in Zsh/Type/_file_descriptors if you want to copy that. Olive