From 6c187b251a73c234afddc2e5142f967ec89e0746 Mon Sep 17 00:00:00 2001 From: Andrey Borzenkov Date: Wed, 6 Jun 2001 16:38:50 +0000 Subject: 14766: unify %l substitution (tty0, pts/3 etc) --- Src/prompt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Src/prompt.c') diff --git a/Src/prompt.c b/Src/prompt.c index 84f88b2d3..47c8af797 100644 --- a/Src/prompt.c +++ b/Src/prompt.c @@ -515,8 +515,8 @@ putpromptchar(int doprint, int endchar) break; case 'l': if (*ttystrname) { - ss = (strncmp(ttystrname, "/dev/tty", 8) ? - ttystrname + 5 : ttystrname + 8); + ss = (strncmp(ttystrname, "/dev/", 5) ? + ttystrname : ttystrname + 5); stradd(ss); } else stradd("()"); -- cgit 1.4.1