From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8986 invoked by alias); 9 Sep 2016 21:55:50 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 39260 Received: (qmail 18864 invoked from network); 9 Sep 2016 21:55:50 -0000 X-Qmail-Scanner-Diagnostics: from mail-wm0-f46.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(74.125.82.46):SA:0(-0.0/5.0):. Processed in 0.255079 secs); 09 Sep 2016 21:55:50 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: myllynen@redhat.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 74.125.82.46 as permitted sender) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:reply-to:to:from:subject:organization:message-id :date:user-agent:mime-version:content-transfer-encoding; bh=DAhMbBdE/5fzjRsmTAdiMtDNrKUK9ZVLDsmPvfFz+J0=; b=dH+8e/YBWHwrV+xyJrAFF0kt5Cet5ehpQIKTvoWwH7RqnC8ThP8b08mg/Y5A9fCgof crk+IjfvfswRfy4o4EVs+a1eYjWmu4iHlTIRRUYPPxggm0x0AhdhWBqeOG0U72LpcC5N AdvZtY9Bo33dTXRzZiE0IDmklkvG5LWKZDAEbsBIr8nab9XXvLGu3bRPRvv2kLHyy3aG KvhkjDTdDVMbcx149dAhvw3NL9BQVlejozXOO5FflQPoukJWiJjr728Aw3EuCuGXynq5 PlmPEqxSV9aVKJWPePFC6gx9UiWDPnsVK9UgjlQ6/lgwTFnz05FlW/kbRsc6rrsm71Ie rjBA== X-Gm-Message-State: AE9vXwPcBXglhutAPXJUfMleUrx00WsEaHdNgQoyaloEB9PZiituwXDwA+u1VtiA1Si8qG1D X-Received: by 10.28.198.206 with SMTP id w197mr1059166wmf.30.1473399551736; Thu, 08 Sep 2016 22:39:11 -0700 (PDT) Reply-To: Marko Myllynen To: zsh workers From: Marko Myllynen Subject: Pattern matching with _files vs command line Organization: Red Hat Message-ID: <75f69404-5bc4-20e5-caf7-3d0a6dd87b59@redhat.com> Date: Fri, 9 Sep 2016 08:39:09 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Hi, With the file-patterns style unset and the following compdef: #compdef foo local expl ret=1 _wanted files expl file _files -g '*(-FM)' && ret=0 return ret I see the following difference, is this expected or perhaps a bug? % find . ./empty ./full ./full/test.txt ./file.txt % ls -d *(-FM) full/ % foo empty full full/ % foo empty/ Both the double match for full and empty being offered were unexpected to me. Thanks, -- Marko Myllynen