summaryrefslogtreecommitdiffstats
path: root/contrib/tcsh/tw.comp.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/tcsh/tw.comp.c')
-rw-r--r--contrib/tcsh/tw.comp.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/contrib/tcsh/tw.comp.c b/contrib/tcsh/tw.comp.c
index 59eff80..13667d9 100644
--- a/contrib/tcsh/tw.comp.c
+++ b/contrib/tcsh/tw.comp.c
@@ -1,4 +1,4 @@
-/* $Header: /src/pub/tcsh/tw.comp.c,v 1.33 2002/06/25 19:02:11 christos Exp $ */
+/* $Header: /src/pub/tcsh/tw.comp.c,v 1.34 2004/02/21 20:34:25 christos Exp $ */
/*
* tw.comp.c: File completion builtin
*/
@@ -32,7 +32,7 @@
*/
#include "sh.h"
-RCSID("$Id: tw.comp.c,v 1.33 2002/06/25 19:02:11 christos Exp $")
+RCSID("$Id: tw.comp.c,v 1.34 2004/02/21 20:34:25 christos Exp $")
#include "tw.h"
#include "ed.h"
@@ -62,6 +62,7 @@ docomplete(v, t)
{
register struct varent *vp;
register Char *p;
+ Char **pp;
USE(t);
v++;
@@ -72,6 +73,15 @@ docomplete(v, t)
vp = adrof1(strip(p), &completions);
if (vp && vp->vec)
tw_pr(vp->vec), xputchar('\n');
+ else
+ {
+#ifdef TDEBUG
+ xprintf("tw_find(%s) \n", short2str(strip(p)));
+#endif /* TDEBUG */
+ pp = tw_find(strip(p), &completions, FALSE);
+ if (pp)
+ tw_pr(pp), xputchar('\n');
+ }
}
else
set1(strip(p), saveblk(v), &completions, VAR_READWRITE);
OpenPOWER on IntegriCloud