Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jc/t1506-shell-param-expansion-gotcha' into maint
author
Junio C Hamano
<gitster@pobox.com>
Mon, 16 May 2011 23:37:54 +0000
(16:37 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 16 May 2011 23:37:54 +0000
(16:37 -0700)
* jc/t1506-shell-param-expansion-gotcha:
t1507: avoid "${parameter<op>'word'}" inside double-quotes
t/t1506-rev-parse-diagnosis.sh
patch
|
blob
|
history
raw
(from parent 1:
90e8b9b
)
diff --git
a/t/t1506-rev-parse-diagnosis.sh
b/t/t1506-rev-parse-diagnosis.sh
index 4a6396f9e3fb8006969916e12066fa6fc1527b3d..0843a1c13b3e1458418ee59c548e5441f113bbe7 100755
(executable)
--- a/
t/t1506-rev-parse-diagnosis.sh
+++ b/
t/t1506-rev-parse-diagnosis.sh
@@
-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'${2:+ aka '$1:./$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
}