From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from euclid.skiles.gatech.edu (euclid.skiles.gatech.edu [130.207.146.50]) by werple.net.au (8.7/8.7.1) with ESMTP id TAA12488 for ; Wed, 10 Jan 1996 19:24:41 +1100 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id DAA08972; Wed, 10 Jan 1996 03:07:59 -0500 (EST) Resent-Date: Wed, 10 Jan 1996 03:07:59 -0500 (EST) From: Zefram Message-Id: <7881.199601100808@stone.dcs.warwick.ac.uk> Subject: Not a -M option To: zsh-workers@math.gatech.edu (Z Shell workers mailing list) Date: Wed, 10 Jan 1996 08:08:01 +0000 (GMT) X-Loop: zefram@dcs.warwick.ac.uk X-Stardate: [-31]6876.69 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Resent-Message-ID: <"ZlKsr1.0.3C2.UFtym"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/728 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu -----BEGIN PGP SIGNED MESSAGE----- This patch fixes the following problem: ~/usr% set -- ~/usr% setopt autocd ~/usr% $@ ~% (The "$@" command should get a "no command" error.) -zefram *** 1.1 1995/12/23 17:39:23 --- exec.c 1996/01/10 08:03:17 *************** *** 1292,1298 **** /* If no command found yet, see if it is * * a directory we should AUTOCD to. */ if (!hn && isset(AUTOCD) && isset(SHINSTDIN) && empty(cmd->redir) ! && !nextnode(firstnode(args)) && (s = cancd(peekfirst(args)))) { peekfirst(args) = (void *) s; pushnode(args, dupstring("cd")); if ((hn = builtintab->getnode(builtintab, "cd"))) --- 1292,1299 ---- /* If no command found yet, see if it is * * a directory we should AUTOCD to. */ if (!hn && isset(AUTOCD) && isset(SHINSTDIN) && empty(cmd->redir) ! && !nextnode(firstnode(args)) ! && (s = cancd(peekfirst(args))) && *s) { peekfirst(args) = (void *) s; pushnode(args, dupstring("cd")); if ((hn = builtintab->getnode(builtintab, "cd"))) -----BEGIN PGP SIGNATURE----- Version: 2.6.i iQCVAgUBMPNzp3D/+HJTpU/hAQHFzQP+JFZFa/R1GVnq347WNzm2Rs2/4DoAZkU+ Wg8t0+diyUpVIACeLs+Flwo59NSGq4quVLcI0gWeJubgYaw5VnBczqq1+zxLfKhO YKuQMIUpdX+aOUkOEC3hV/6bmD0uozBdlexNvvDVqQc2i/6ebLWnKIn8+QvQPWki Uy/6ykAj5Fg= =Wg88 -----END PGP SIGNATURE-----