Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Directory completion and Initial path completion option
- X-seq: zsh-workers 3502
- From: Peter Stephenson <pws@xxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxxx (Zsh hackers list)
- Subject: Re: Directory completion and Initial path completion option
- Date: Wed, 17 Sep 1997 15:09:18 +0200
- In-reply-to: "Sven Wischnowsky"'s message of "Wed, 17 Sep 1997 14:58:00 MET." <m0xBJgb-00013EC@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sven Wischnowsky wrote:
> That should be `cc-mask & CC_DIRS'.
>
> here we probably should use "path expected after -%c".
you're right, here's another additional patch (requires both previous
sets of patches).
*** Src/Zle/compctl.c~ Tue Sep 16 16:27:08 1997
--- Src/Zle/compctl.c Wed Sep 17 15:06:37 1997
***************
*** 285,291 ****
cct.withd = (*argv) + 1;
*argv = "" - 1;
} else if (!argv[1]) {
! zwarnnam(name, "command string expected after -%c", NULL,
**argv);
return 1;
} else {
--- 285,291 ----
cct.withd = (*argv) + 1;
*argv = "" - 1;
} else if (!argv[1]) {
! zwarnnam(name, "path expected after -%c", NULL,
**argv);
return 1;
} else {
*** Src/Zle/zle_tricky.c~ Tue Sep 16 16:53:46 1997
--- Src/Zle/zle_tricky.c Wed Sep 17 15:06:00 1997
***************
*** 2638,2644 ****
prpre = pp;
}
}
! } else if (cc->mask && CC_DIRS)
gen_matches_files(1, 0, 0);
/* The compctl has a glob pattern (compctl -g). */
if (cc->glob) {
--- 2638,2644 ----
prpre = pp;
}
}
! } else if (cc->mask & CC_DIRS)
gen_matches_files(1, 0, 0);
/* The compctl has a glob pattern (compctl -g). */
if (cc->glob) {
--
Peter Stephenson <pws@xxxxxx> Tel: +49 33762 77366
WWW: http://www.ifh.de/~pws/ Fax: +49 33762 77413
Deutsches Elektronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen
DESY-IfH, Platanenallee 6, 15738 Zeuthen, Germany.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author