Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/printf Printf's that support \e for escape all seem ...
details: https://anonhg.NetBSD.org/src/rev/789f10850873
branches: trunk
changeset: 993305:789f10850873
user: kre <kre%NetBSD.org@localhost>
date: Tue Sep 04 01:13:50 2018 +0000
description:
Printf's that support \e for escape all seem to also support \E.
Except us. Now we do as well.
diffstat:
usr.bin/printf/printf.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 03c249c0c5a6 -r 789f10850873 usr.bin/printf/printf.c
--- a/usr.bin/printf/printf.c Tue Sep 04 01:09:28 2018 +0000
+++ b/usr.bin/printf/printf.c Tue Sep 04 01:13:50 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: printf.c,v 1.44 2018/09/03 04:10:20 kre Exp $ */
+/* $NetBSD: printf.c,v 1.45 2018/09/04 01:13:50 kre Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)printf.c 8.2 (Berkeley) 3/22/95";
#else
-__RCSID("$NetBSD: printf.c,v 1.44 2018/09/03 04:10:20 kre Exp $");
+__RCSID("$NetBSD: printf.c,v 1.45 2018/09/04 01:13:50 kre Exp $");
#endif
#endif /* not lint */
@@ -504,6 +504,7 @@
case 'a': value = '\a'; break; /* alert */
case 'b': value = '\b'; break; /* backspace */
case 'e': value = ESCAPE; break; /* escape */
+ case 'E': value = ESCAPE; break; /* escape */
case 'f': value = '\f'; break; /* form-feed */
case 'n': value = '\n'; break; /* newline */
case 'r': value = '\r'; break; /* carriage-return */
Home |
Main Index |
Thread Index |
Old Index