From bd482d6e3348fe369b3b1db2dadbca278a0f0025 Mon Sep 17 00:00:00 2001 From: Denton Liu Date: Thu, 5 Sep 2019 15:10:05 -0700 Subject: t: use common $SQ variable In many test scripts, there are bespoke definitions of the single quote that are some variation of this: SQ="'" Define a common $SQ variable in test-lib.sh and replace all usages of these bespoke variables with the common one. This change was done by running `git grep =\"\'\" t/` and `git grep =\\\\\'` and manually changing the resulting definitions and corresponding usages. Signed-off-by: Denton Liu Signed-off-by: Junio C Hamano --- t/t1506-rev-parse-diagnosis.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 't/t1506-rev-parse-diagnosis.sh') diff --git a/t/t1506-rev-parse-diagnosis.sh b/t/t1506-rev-parse-diagnosis.sh index 4ee009da66..21a9c8ffb2 100755 --- a/t/t1506-rev-parse-diagnosis.sh +++ b/t/t1506-rev-parse-diagnosis.sh @@ -8,10 +8,9 @@ exec expected <<-EOF && - fatal: Path '$2$3' $4, but not ${5:-$sq$3$sq}. - Did you mean '$1:$2$3'${2:+ aka $sq$1:./$3$sq}? + fatal: Path '$2$3' $4, but not ${5:-$SQ$3$SQ}. + Did you mean '$1:$2$3'${2:+ aka $SQ$1:./$3$SQ}? EOF test_cmp expected error } -- cgit v1.2.3