author | Jeff King <peff@peff.net> | |
Wed, 14 May 2008 04:01:22 +0000 (00:01 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 14 May 2008 04:44:48 +0000 (21:44 -0700) | ||
commit | bbf08124e0a87658a76b53a05d67227fa3b4e7b9 | |
tree | e3eb0c8faee5837f0f0eefb8f831c068f67a2705 | tree | snapshot |
parent | 64c0d71ce91696dfe5beb4b51e3233e56c857290 | commit | diff |
fix bsd shell negation
On some shells (notably /bin/sh on FreeBSD 6.1), the
construct
foo && ! bar | baz
is true if
foo && baz
whereas for most other shells (such as bash) is true if
foo && ! baz
We can work around this by specifying
foo && ! (bar | baz)
which works everywhere.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
On some shells (notably /bin/sh on FreeBSD 6.1), the
construct
foo && ! bar | baz
is true if
foo && baz
whereas for most other shells (such as bash) is true if
foo && ! baz
We can work around this by specifying
foo && ! (bar | baz)
which works everywhere.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-rebase.sh | diff | blob | history | |
t/t3400-rebase.sh | diff | blob | history | |
t/t3700-add.sh | diff | blob | history | |
t/t5302-pack-index.sh | diff | blob | history | |
t/t7501-commit.sh | diff | blob | history |