From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5682 invoked by alias); 26 Oct 2013 10:27:46 -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: 31901 Received: (qmail 26894 invoked from network); 26 Oct 2013 10:27:39 -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,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-Biglobe-Sender: From: "Jun T." Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: _file in _zmodload: why option -/ ? Message-Id: <71A3F03E-CFD1-48A1-8AE1-E62FDEC37806@kba.biglobe.ne.jp> Date: Sat, 26 Oct 2013 18:25:27 +0900 To: zsh-workers@zsh.org Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1816\)) X-Mailer: Apple Mail (2.1816) In Completion/Zsh/Command/_zmodload, line 65, _files -W module_path -/g '*.(dll|s[ol]|bundle)(:r)' && ret=0 Why the option -/ is necessary here? I guess just -g 'pattern' is enough. I noticed this because 'gmodload ' completes only directory and no module files if I use the following style (by Bart Schaefer, see 31638), zstyle -e ':completion::*' file-patterns \ '[[ $funcstack[1] = _files && $type = */* ]] && reply=("*(/)")'