Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/regress/tools/files regress/tools: reduce the number o...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9f245fe5837c
branches:  trunk
changeset: 430591:9f245fe5837c
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sat May 02 08:07:28 2020 +0000

description:
regress/tools: reduce the number of backslashes in the code

diffstat:

 regress/tools/files/shquote-test.sh |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 3911fa3e39ca -r 9f245fe5837c regress/tools/files/shquote-test.sh
--- a/regress/tools/files/shquote-test.sh       Sat May 02 08:03:17 2020 +0000
+++ b/regress/tools/files/shquote-test.sh       Sat May 02 08:07:28 2020 +0000
@@ -17,7 +17,7 @@
 
 test_shquote ' ' becomes "' '"
 test_shquote '!' becomes '!'
-test_shquote '"' becomes \'\"\'
+test_shquote '"' becomes "'\"'"
 test_shquote '#' becomes "'#'"
 test_shquote '$' becomes "'$'"
 test_shquote '%' becomes '%'
@@ -34,7 +34,7 @@
 test_shquote '?' becomes "'?'"
 test_shquote '@ABCDEFGHIJKLMNOPQRSTUVWXYZ' becomes '@ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 test_shquote '[' becomes "'['"
-test_shquote '\' becomes \'\\\'
+test_shquote '\' becomes "'\\'"
 test_shquote ']' becomes "']'"
 test_shquote '^' becomes "'^'"
 test_shquote '_' becomes '_'



Home | Main Index | Thread Index | Old Index