From: Zefram <A.Main@dcs.warwick.ac.uk>
To: zsh-workers@math.gatech.edu (Z Shell workers mailing list)
Subject: Not a -M option
Date: Wed, 10 Jan 1996 08:08:01 +0000 (GMT) [thread overview]
Message-ID: <7881.199601100808@stone.dcs.warwick.ac.uk> (raw)
-----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-----
next reply other threads:[~1996-01-10 8:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-01-10 8:08 Zefram [this message]
1996-01-10 8:58 ` P.Stephenson
1996-01-10 9:21 ` Zefram
1996-01-10 15:50 ` Mark Borges
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7881.199601100808@stone.dcs.warwick.ac.uk \
--to=a.main@dcs.warwick.ac.uk \
--cc=zsh-workers@math.gatech.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).