summaryrefslogtreecommitdiff
path: root/bin/csh/printf.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-08-25 13:35:18 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-08-25 13:35:18 +0000
commit15c53133363a9edb8fab2e43d787f17efc8a795f (patch)
treeac2c9a8dac6cfe645379d197d89dfbc4c59a6175 /bin/csh/printf.c
parent111540ee2a200d2fa642a3105490f6b054c7c45f (diff)
support \e in built-in printf
Diffstat (limited to 'bin/csh/printf.c')
-rw-r--r--bin/csh/printf.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/csh/printf.c b/bin/csh/printf.c
index af04f5b677c..50b00eaf633 100644
--- a/bin/csh/printf.c
+++ b/bin/csh/printf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: printf.c,v 1.7 1997/09/22 05:09:14 millert Exp $ */
+/* $OpenBSD: printf.c,v 1.8 1998/08/25 13:35:17 deraadt Exp $ */
/* $NetBSD: printf.c,v 1.6 1995/03/21 09:03:15 cgd Exp $ */
/*
@@ -46,7 +46,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)printf.c 8.1 (Berkeley) 7/20/93";
#else
-static char rcsid[] = "$OpenBSD: printf.c,v 1.7 1997/09/22 05:09:14 millert Exp $";
+static char rcsid[] = "$OpenBSD: printf.c,v 1.8 1998/08/25 13:35:17 deraadt Exp $";
#endif
#endif /* not lint */
@@ -262,6 +262,9 @@ escape(fmt)
case 'a': /* bell/alert */
*store = '\7';
break;
+ case 'e': /* escape */
+ *store = '\033';
+ break;
case 'b': /* backspace */
*store = '\b';
break;