Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libcurses Convert % into %% in input string so pri...
details: https://anonhg.NetBSD.org/src/rev/bd96e470cd5f
branches: trunk
changeset: 379541:bd96e470cd5f
user: blymn <blymn%NetBSD.org@localhost>
date: Sat Jun 05 06:23:48 2021 +0000
description:
Convert % into %% in input string so printf won't barf
diffstat:
tests/lib/libcurses/chk_gen | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r d7b0756d0868 -r bd96e470cd5f tests/lib/libcurses/chk_gen
--- a/tests/lib/libcurses/chk_gen Sat Jun 05 06:13:36 2021 +0000
+++ b/tests/lib/libcurses/chk_gen Sat Jun 05 06:23:48 2021 +0000
@@ -8,7 +8,7 @@
OUT=""
while read -r line
do
- next=`echo $line | sed -e 's/\n//' -e 's/\\015/\\r/g' -e 's/\\012/\\n/g'`
+ next=`echo $line | sed -e 's/%/%%/g' -e 's/\n//' -e 's/\\015/\\r/g' -e 's/\\012/\\n/g'`
OUT="${OUT}${next}"
done
OUT=`echo "${OUT}" | sed 's/\n//'`
Home |
Main Index |
Thread Index |
Old Index