From: Nathaniel Wesley Filardo Date: Tue, 27 Dec 2022 02:55:03 +0000 (+0000) Subject: Add additional escaping stress test X-Git-Url: https://hydra-www.ietfng.org/gitweb/?a=commitdiff_plain;h=ce7ce69a4849caa3af34493a668e1f06068a3d82;p=csdb Add additional escaping stress test Thanks to https://github.com/jwilk/url.sh --- diff --git a/test-util.sh b/test-util.sh index 90af33a..c5dacdd 100755 --- a/test-util.sh +++ b/test-util.sh @@ -41,6 +41,12 @@ HERE HERE # Test the various shell escapes +# +# Full credit to https://github.com/jwilk/url.sh (MIT license) for the +# example.com URL below. That's nicely evil. Note that we have had to escape +# the dollar signs ourselves in the test input and outputs! I'm not convinced +# that the "human" version is doing very well on that example, but it's so +# pathological that if you have file names like that you deserve what you get. ARB=$(echo "a\rb") cat >${LOG1} <