Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Not a -M option
- X-seq: zsh-workers 728
- From: Zefram <A.Main@xxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxxx (Z Shell workers mailing list)
- Subject: Not a -M option
- Date: Wed, 10 Jan 1996 08:08:01 +0000 (GMT)
-----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-----
Messages sorted by:
Reverse Date,
Date,
Thread,
Author