From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16822 invoked by alias); 19 Oct 2010 13:13:18 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 15450 Received: (qmail 14677 invoked from network); 19 Oct 2010 13:13:16 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at bewatermyfriend.org does not designate permitted sender hosts) From: Frank Terbeck To: Sebastian Stark Cc: zsh-users@zsh.org Subject: Re: _screen calls non-existent program In-Reply-To: <5C904183-5F0E-4971-B036-497A143DD227@biskalar.de> (Sebastian Stark's message of "Tue, 19 Oct 2010 14:21:12 +0200") References: <5C904183-5F0E-4971-B036-497A143DD227@biskalar.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) Date: Tue, 19 Oct 2010 14:51:21 +0200 Message-ID: <87zkuagxbq.fsf@ft.bewatermyfriend.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Df-Sender: 430444 Sebastian Stark wrote: > Looking at _screen I see that the list of existing sessions should come from > > _call_program screen-sessions $words[1] -ls > > Now I'm wondering what the screen-sessions command should look like, > it is not available on any of my machines. To me it looks a bit like > it is the same as screen itself, because of the -ls option. But than I > don't get the $words[1] part. `_call_program' enables you to actually *change* the used program via a style. `screen-session' is the tag used with the command style. "$words[1]" is the first word of the command the completion is run on. In other words "screen". Thus, the default program being run here is "screen -ls". Regards, Frank -- In protocol design, perfection has been reached not when there is nothing left to add, but when there is nothing left to take away. -- RFC 1925