I do not think you need a subshell for this particular test, so your
change would not be making anything worse, but I do not see a point.
It is a plain vanilla POSIX shell construct; "! ( compound_list )" is not a
bash-ism at all.
http://www.opengroup.org/onlinepubs/000095399/utilities/xcu_chap02.html#tag_02_10
Same comments apply.
Having said that, as both of these tests are trying to make sure that the
command fails gracefully (iow, say "failure" and refuse, instead of
barfing and dumping core), they could probably use test_must_fail, like
this:
git checkout -b delete-me master &&
rm .git/refs/heads/delete-me &&
test refs/heads/delete-me = "$(git symbolic-ref HEAD)" &&
- !(git checkout --track -b track)'
+ test_must_fail git checkout --track -b track'
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html