summaryrefslogtreecommitdiff
path: root/tw.comp.c
diff options
context:
space:
mode:
Diffstat (limited to 'tw.comp.c')
-rw-r--r--tw.comp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tw.comp.c b/tw.comp.c
index 30285aff7c66..475262dac0db 100644
--- a/tw.comp.c
+++ b/tw.comp.c
@@ -1,4 +1,4 @@
-/* $Header: /p/tcsh/cvsroot/tcsh/tw.comp.c,v 1.41 2006/03/02 18:46:45 christos Exp $ */
+/* $Header: /p/tcsh/cvsroot/tcsh/tw.comp.c,v 1.42 2007/10/01 21:52:00 christos Exp $ */
/*
* tw.comp.c: File completion builtin
*/
@@ -32,7 +32,7 @@
*/
#include "sh.h"
-RCSID("$tcsh: tw.comp.c,v 1.41 2006/03/02 18:46:45 christos Exp $")
+RCSID("$tcsh: tw.comp.c,v 1.42 2007/10/01 21:52:00 christos Exp $")
#include "tw.h"
#include "ed.h"
@@ -630,7 +630,9 @@ tw_complete(const Char *line, Char **word, Char **pat, int looking, eChar *suf)
default:
abort(); /* Cannot happen */
}
+ tsetenv(STRCOMMAND_LINE, line);
res = tw_result(com, pat);
+ Unsetenv(STRCOMMAND_LINE);
cleanup_until(buf);
return res;
}