git-svn: Fix git svn log --show-commit
[gitweb.git] / t / t1506-rev-parse-diagnosis.sh
index f9cb2021a7569b7e9674148e2c4f811901a7fb6c..0843a1c13b3e1458418ee59c548e5441f113bbe7 100755 (executable)
@@ -8,8 +8,11 @@ exec </dev/null
 
 test_did_you_mean ()
 {
-       printf "fatal: Path '$2$3' $4, but not ${5:-'$3'}.\n" >expected &&
-       printf "Did you mean '$1:$2$3'?\n" >>expected &&
+       sq="'" &&
+       cat >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}?
+       EOF
        test_cmp expected error
 }