summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1998-08-25 13:35:17 +0000
committerderaadt <deraadt@openbsd.org>1998-08-25 13:35:17 +0000
commitee4ff6d409c25a12967868fb26f5060547050bd8 (patch)
tree5ca99f96e2600cca413ee6a0ab3d465b3c0781d1
parentMore interrupt changes (diff)
downloadwireguard-openbsd-ee4ff6d409c25a12967868fb26f5060547050bd8.tar.xz
wireguard-openbsd-ee4ff6d409c25a12967868fb26f5060547050bd8.zip
support \e in built-in printf
-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;