From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2284 invoked by alias); 6 May 2015 04:13:12 -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: 20177 Received: (qmail 8420 invoked from network); 6 May 2015 04:13:09 -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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 Message-ID: <55498F16.60402@gmx.com> Date: Tue, 05 May 2015 23:48:38 -0400 From: Eric Cook User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: zsh-users@zsh.org Subject: _files with match-specs Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:dcfe5qauzldXoziKmy7epY1pGrPJUERJ/+TiqvHW+xRywGIdD8W tULc6QrylTYmWy+4NSAej8HhltsXP8XK2dFzkfWRjIa2NjTQXV/+JES5Pmu9eMy4ByZj7q5 hrS7zWYFsD/qkwdibKgZ1luCcki+k43YdaGaWjipZ0e9Pchy0NCdueifS7+51rlaxZB6KmW U5KeE6JpwRpFvVFeX8UmQ== X-UI-Out-Filterresults: notjunk:1; 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? If so, how should I go about completing filenames, ignoring a possible leading + character?