From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21018 invoked by alias); 27 Oct 2013 16:11:08 -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: 31910 Received: (qmail 14521 invoked from network); 27 Oct 2013 16:11:03 -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: Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1816\)) Subject: Re: _file in _zmodload: why option -/ ? From: "Jun T." In-Reply-To: <131026143721.ZM9022@torch.brasslantern.com> Date: Mon, 28 Oct 2013 01:10:26 +0900 Content-Transfer-Encoding: quoted-printable Message-Id: <2CCD8761-51AF-4DAE-82F0-3F57BA9FD01F@kba.biglobe.ne.jp> References: <71A3F03E-CFD1-48A1-8AE1-E62FDEC37806@kba.biglobe.ne.jp> <131026143721.ZM9022@torch.brasslantern.com> To: zsh-workers@zsh.org X-Mailer: Apple Mail (2.1816) 2013/10/27 06:37=E3=80=81Bart Schaefer = wrote: > I'm not entirely sure, but its effect on _files is to cause symlinks > that point to directories to be followed, so I presume it's to force > symlinks in directories that contain modules to be offered alongside > the modules that happen to be in the same directory. In _files, there are lines of code (lines 66-69 and 79-82) which seem to = be commented out in 2001; see seq:15995 http://www.zsh.org/mla/workers/2001/msg02656.html With this old code, if -/ is omitted, then both directories and symlinks = to directories would not be offered. With the present code, however, I *guess* -/ can be omitted. But there may be styles and options which could interfere with the = option -/ and it may be safer to leave the option as is.... So I tried to modify my zstyle as, for example, zstyle -e ':completion::*' file-patterns \ '[[ $funcstack[1] =3D _files && $type =3D~ "^[^g]*/[^g]*$" ]] && = reply=3D("*(-/)")' which seems to solve my problem.=