From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2053 invoked by alias); 19 Oct 2010 13:36:05 -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: 15452 Received: (qmail 1334 invoked from network); 19 Oct 2010 13:36:04 -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=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 74.125.83.171 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=zZD+8U7oDwKg3EjyUx1WEQ1L6iqNyBnshO4CPSJweRQ=; b=OqE1LTXisWhs+Y4oWfeimu+t0aaD4q3265EVS44y/VvdQBLapA4j4o0eDEP507JPCa BsikyyoIuQ0gbdaE1tPnY21w8Q7PdCzeHEA8LNIyZcGHL9Rqkqkt3kgmTbUps2r5cl4v xdE+qT5h2ShggagvRgGbZwJ7R6T+Up1o8/0Sw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=U0etgjIlwwN9JFMXqcysKU1zmSvdmIeuDJN3OlZOrOuGep74+/EhI7JzoJsVKMg+G2 jUSv7IlIlgRLIclUB8X3mYBEFZgdsaF2+WTjuFNDAhY4EnPfcMPal7dcxw+WU43XYd8e f4XqGpbTvV8a4+7lTNsyBDtXfYPOUpZAXvroU= MIME-Version: 1.0 In-Reply-To: <549B08AA-447B-4F16-AC26-BECE5C5F538F@biskalar.de> References: <5C904183-5F0E-4971-B036-497A143DD227@biskalar.de> <87zkuagxbq.fsf@ft.bewatermyfriend.org> <549B08AA-447B-4F16-AC26-BECE5C5F538F@biskalar.de> Date: Tue, 19 Oct 2010 15:07:37 +0200 Message-ID: Subject: Re: _screen calls non-existent program From: Mikael Magnusson To: Sebastian Stark Cc: zsh-users@zsh.org Content-Type: text/plain; charset=UTF-8 On 19 October 2010 15:00, Sebastian Stark wrote: > > Am 19.10.2010 um 14:51 schrieb Frank Terbeck: > >> 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". > > Thanks for explaining. .oO(must read manual page harder ...) > > Anyway, it does not work for me: > > % screen -ls > There is a screen on: > 22789.ttys000.suck (Attached) > 1 Socket in /var/folders/zz/zzzivhrRnAmviuee+++2I+++-3+/-Tmp-/.screen. > > % screen -S > session name > > No session is displayed in the "session name" menu by the completion system. I have no customisation regarding screen in my configuration ("zstyle -L | grep screen" is empty). I still must be doing something wrong here. screen -S names the session you're starting, it does nothing with existing sessions. -- Mikael Magnusson