From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: zsh-workers-request@euclid.skiles.gatech.edu Received: from euclid.skiles.gatech.edu (list@euclid.skiles.gatech.edu [130.207.146.50]) by coral.primenet.com.au (8.7.6/8.7.3) with ESMTP id VAA08720 for ; Thu, 21 Nov 1996 21:48:27 +1100 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id FAA19646; Thu, 21 Nov 1996 05:28:44 -0500 (EST) Resent-Date: Thu, 21 Nov 1996 05:28:44 -0500 (EST) Date: Thu, 21 Nov 1996 11:51:20 +0200 From: Jari Kokko Message-Id: <199611210951.LAA08582@tnso09.tele.nokia.fi> To: zsh-workers@math.gatech.edu Subject: bug or feature in how zsh looks for commands? Reply-to: jkokko@tnso13.ntc.nokia.com Resent-Message-ID: <"1Usqu1.0.ro4.Mx2bo"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/2444 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Is this the desired behaviour? $ unsetopt autocd $ mkdir bin/foobar $ rehash $ which which which: shell built-in command $ echo $ZSH_VERSION 3.0.1 $ which foobar foobar not found $ foobar zsh: permission denied: foobar $ sh $ foobar foobar: cannot execute $ bash bash$ foobar bash: foobar: is a directory Jari Kokko