diff options
Diffstat (limited to 'tc.prompt.c')
-rw-r--r-- | tc.prompt.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tc.prompt.c b/tc.prompt.c index 8ab6da958a2d..65066f11211e 100644 --- a/tc.prompt.c +++ b/tc.prompt.c @@ -38,7 +38,7 @@ * PWP 4/27/87 -- rearange for tcsh. * mrdch@com.tau.edu.il 6/26/89 - added ~, T and .# - rearanged to switch() * instead of if/elseif - * Luke Mewburn, <lukem@cs.rmit.edu.au> + * Luke Mewburn * 6-Sep-91 changed date format * 16-Feb-94 rewrote directory prompt code, added $ellipsis * 29-Dec-96 added rprompt support @@ -340,7 +340,6 @@ tprintf(int what, const Char *fmt, const char *str, time_t tim, ptr_t info) break; } - /* lukem: new directory prompt code */ case '~': case '/': case '.': @@ -453,7 +452,6 @@ tprintf(int what, const Char *fmt, const char *str, time_t tim, ptr_t info) while (*z) Strbuf_append1(&buf, attributes | *z++); break; - /* lukem: end of new directory prompt code */ case 'n': #ifndef HAVENOUTMP @@ -596,7 +594,7 @@ tprintf(int what, const Char *fmt, const char *str, time_t tim, ptr_t info) } } else if (*cp == '\\' || *cp == '^') - Strbuf_append1(&buf, attributes | parseescape(&cp)); + Strbuf_append1(&buf, attributes | parseescape(&cp, TRUE)); else if (*cp == HIST) { /* EGS: handle '!'s in prompts */ if (what == FMT_HISTORY) cz = fmthist('h', info); |