From: Dragan Simic Date: Sun, 17 Mar 2024 03:48:03 GMT Subject: [PATCH v2 3/5] test: introduce new x_to_tab() helper function Message-ID: <480b46f2db82ea9c6cd9bbc2423923f81f2d36f5.1710646998.git.dsimic@manjaro.org> In-Reply-To: There's nothing wrong with the already existing q_to_tab() function, except when it's used on strings that contain uppercase letter "Q" in its literal meaning, which, for example, can happen with git configurations that contain "*.*Quoted" as the names of their configuration variables. Thus, let's introduce new x_to_tab() helper function that does pretty much the same job as the already existing q_to_tab() helper function, except for replacing "X" with a horizontal tab (HT), instead of replacing "Q". Signed-off-by: Dragan Simic --- Notes: This patch didn't exist in the v1 of this patch series. 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 6eaf116346be..362d3205b7b0 100644 --- a/t/test-lib-functions.sh +++ b/t/test-lib-functions.sh @@ -107,6 +107,10 @@ q_to_tab () { tr Q '\011' } +x_to_tab () { + tr X '\011' +} + qz_to_tab_space () { tr QZ '\011\040' }