From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26817 invoked by alias); 16 Nov 2014 23:37:26 -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: 33698 Received: (qmail 29665 invoked from network); 16 Nov 2014 23:37: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, T_HDRS_LCASE,T_MANY_HDRS_LCASE autolearn=ham version=3.3.2 X-Authority-Analysis: v=2.1 cv=AduIQRnG c=1 sm=1 tr=0 a=bpgch9+C868ayMgLKMOKIA==:117 a=bpgch9+C868ayMgLKMOKIA==:17 a=G8GL833Es-AA:10 a=IkcTkHD0fZMA:10 a=jS_vhNCKIK0HFfPz2-8A:9 a=QEXdDO2ut3YA:10 Message-id: <54693525.70902@eastlink.ca> Date: Sun, 16 Nov 2014 15:37:09 -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: Zsh hackers list Subject: more tinkering with whence Content-type: text/plain; charset=utf-8; format=flowed Content-transfer-encoding: 7bit All good: $ whence -mav global global is a shell function global is /usr/local/bin/global Rename the file: $ mv /usr/local/bin/global /usr/local/bin/gglobal It now says 'not found', which is true, but ... $ whence -mav global global is a shell function global not found Restart: $ zsh ... now it doesn't bother reporting that it's 'not found': $ whence -mav global global is a shell function Rename the file back to 'global', and ... $ mv /usr/local/bin/gglobal /usr/local/bin/global ... the file isn't found at all: $ whence -mav global global is a shell function Must restart to find it: $ zsh ... and there is is again: $ whence -mav global global is a shell function global is /usr/local/bin/global Is there some way to update or inform whence that a new item exists on the path, without restarting the shell? Is this something involving the hash table?