zsh-workers
 help / color / mirror / code / Atom feed
* Not a -M option
@ 1996-01-10  8:08 Zefram
  1996-01-10  8:58 ` P.Stephenson
  0 siblings, 1 reply; 4+ messages in thread
From: Zefram @ 1996-01-10  8:08 UTC (permalink / raw)
  To: Z Shell workers mailing list

-----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-----


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1996-01-10 16:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-01-10  8:08 Not a -M option Zefram
1996-01-10  8:58 ` P.Stephenson
1996-01-10  9:21   ` Zefram
1996-01-10 15:50     ` Mark Borges

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).