From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19953 invoked by alias); 11 Nov 2014 20:25:28 -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: 33684 Received: (qmail 25150 invoked from network); 11 Nov 2014 20:25:14 -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=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 X-Authority-Analysis: v=2.1 cv=HYUtEE08 c=1 sm=1 tr=0 a=Qyz5EhwEgno+0ygJy6JQjg==:117 a=Qyz5EhwEgno+0ygJy6JQjg==:17 a=G8GL833Es-AA:10 a=IkcTkHD0fZMA:10 a=tT4UrMFNSTbx0v590bwA:9 a=QEXdDO2ut3YA:10 Message-id: <54626FFC.3060900@eastlink.ca> Date: Tue, 11 Nov 2014 12:22:20 -0800 From: Ray Andrews User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Icedove/31.2.0 MIME-version: 1.0 To: Bart Schaefer Cc: Zsh hackers list Subject: Re: 'whence' question References: <545A6D66.3080500@eastlink.ca> <1458.1415209763@thecus.kiddle.eu> <20141105180035.22f6e9b1@pwslap01u.europe.root.pri> <141105204330.ZM2973@torch.brasslantern.com> <20141106211017.11b8848a@pws-pc.ntlworld.com> <20141108204123.1fcc698e@pws-pc.ntlworld.com> <141109105139.ZM27532@torch.brasslantern.com> <54623EBF.8040308@eastlink.ca> In-reply-to: Content-type: text/plain; charset=utf-8; format=flowed Content-transfer-encoding: 7bit On 11/11/2014 11:14 AM, Bart Schaefer wrote: > On Tue, Nov 11, 2014 at 8:52 AM, Ray Andrews wrote: >> Got that patch. It works as advertised > If you haven't already, you might want to get minimally familiar with > "git" so you can pull from the development repository rather than > applying individual patches. Right, I just wanted to have a chew on that patch first. Tricky doing it by hand, gotta learn to do it correctly. > and see what you get. I think this will explain all your confusion. Well, lots of it anyway ;-) in the case of: $ whence zsh* zsh /usr/local/bin/zsh-RayStyle1 ... it was just a coincidence that a copy of the latter file was in my current dir, thus a subject for search. It wasn't 'really' scanning the path for "zsh*" in the same way that it would with '-m' active. I got the results I expected, but for absolutely the wrong reasons.) > > For "whence" one probably would always quote patterns. For most other > commands that operate on file names, one probably wants them unquoted, > so that is the default behavior. Command line input semantics > including globbing are entirely separate in *nix from the semantics > internal to the command itself -- very unlike DOS where it is up to > the command to invoke globbing on its arguments. Ok, I think I get it. That's the difference between quoted and unquoted arguments to whence or anything else. One might validly leave ' zsh* ' unquoted, but the meaning is very different. I should already have that written in my DNA, pardon for being thick headed.