From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1756 invoked by alias); 19 Sep 2014 08:14:53 -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: 19108 Received: (qmail 26631 invoked from network); 19 Sep 2014 08:14:51 -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=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.2 Date: Fri, 19 Sep 2014 16:04:26 +0800 From: Han Pingtian To: zsh-users@zsh.org Subject: negative pattern doesn't match empty string in globbing? Message-ID: <20140919080426.GA4265@localhost.localdomain> Mail-Followup-To: zsh-users@zsh.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 14091908-8236-0000-0000-00000586FD9D Hello, I just notice that negative pattern like this doesn't work: localhost% setopt extendedglob localhost% print /usr/**/bin/zsh /usr/bin/zsh /usr/local/bin/zsh localhost% print /usr/^local/bin/zsh zsh: no matches found: /usr/^local/bin/zsh localhost% ls /usr//bin/zsh /usr//bin/zsh localhost% I think if "^local" can match with empty string, then this should work. But looks like it doesn't.