diff options
author | mp <mp@FreeBSD.org> | 2004-07-11 02:17:56 +0000 |
---|---|---|
committer | mp <mp@FreeBSD.org> | 2004-07-11 02:17:56 +0000 |
commit | bbd1addf8f9452690ad13ce5b875ee4cc9633958 (patch) | |
tree | 730792f0cc19f3bb4fb663fe727589381f5901be /contrib/tcsh/tw.comp.c | |
parent | f2c2aa29b7d05c53575ab7ce4dc5870fd33a1310 (diff) | |
download | FreeBSD-src-bbd1addf8f9452690ad13ce5b875ee4cc9633958.zip FreeBSD-src-bbd1addf8f9452690ad13ce5b875ee4cc9633958.tar.gz |
Import of tcsh-6.13.00
Diffstat (limited to 'contrib/tcsh/tw.comp.c')
-rw-r--r-- | contrib/tcsh/tw.comp.c | 14 |
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); |