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/4d655daee6b8
branches: trunk
changeset: 1021572:4d655daee6b8
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 2f3141068d50 -r 4d655daee6b8 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