From 09156453348bb940507072d0d9ea8d722dee5648 Mon Sep 17 00:00:00 2001 From: Jeff Hostetler Date: Fri, 5 Aug 2016 18:00:33 -0400 Subject: [PATCH] test-lib-functions.sh: Add lf_to_nul Add lf_to_nul() function to test-lib-functions. Signed-off-by: Jeff Hostetler Signed-off-by: Junio C Hamano --- t/test-lib-functions.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/t/test-lib-functions.sh b/t/test-lib-functions.sh index ca40a1289f..1a2c0a750e 100644 --- a/t/test-lib-functions.sh +++ b/t/test-lib-functions.sh @@ -81,6 +81,10 @@ test_decode_color () { ' } +lf_to_nul () { + perl -pe 'y/\012/\000/' +} + nul_to_q () { perl -pe 'y/\000/Q/' }