From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23768 invoked by alias); 7 May 2015 00:48:52 -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: 20184 Received: (qmail 26767 invoked from network); 7 May 2015 00:48:48 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=dyKGQ5QQhKqx21GhvhfkxT2EI/s=; b=wrIdEv j4gGCLPafGz8bFQCr9kD396yPT04rG4Ukbi24ORJXGBt/1ZZCWV/9plaJ+0nI+FJ 00bXB4JHyWXbpBXva/4yRF98aI4IU+J5C7GZnqPrwRJTD8OXgzaavrNer9ITEl7L TLsBZKVhwFOb4i0m9yIWpgRMkhKRByAuPqdgY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=dyKGQ5QQhKqx21GhvhfkxT2EI/s=; b=gIKAx T7ejEdty/M8qEPJntS5Oz/Rs3puYzWS85I35peR+8nbrEaxaZ22kkcH4q2C3no2m eZCO0x+1iJTlI0bjksL60XEO9+kd36FZcV2AVHSYjn+WY6d1/t2zKbykHMOpXODs CmZzyFsZX3C1/FcNkNGk7dIHApgGIj+bpX5N3c= X-Sasl-enc: Oj4gXOhYp8IeCQzPh0oEpv6WyPw8DE1YaOZrhguDpZpr 1430959727 Date: Thu, 7 May 2015 00:48:44 +0000 From: Daniel Shahaf To: Eric Cook Cc: zsh-users@zsh.org Subject: Re: _files with match-specs Message-ID: <20150507004844.GB1983@tarsus.local2> References: <55498F16.60402@gmx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <55498F16.60402@gmx.com> User-Agent: Mutt/1.5.21 (2010-09-15) Eric Cook wrote on Tue, May 05, 2015 at 23:48:38 -0400: > Hey, > Not sure if i am doing something incorrect here but: > > % _foo() _files -M 'L:|+='; compdef _foo foo > > then > % foo + > Complete files, but removes the leading +. > > When i give the same match-spec to compadd directly, it works as i expected. > > % _foo() compadd -M 'L:|+=' -- *(N); compdef _foo foo > > then > % foo + > > Is the behavior of _files expected? Don't know. > If so, how should I go about completing filenames, ignoring a possible > leading + character? '_f() { compset -P +; _files }', perhaps? Daniel