@matheusbsbs / matheus-bagliano / commits / 7213080817
Fork 0

tests: shell negation portability fix

Commit 969c8775 introduced a test which uses the non-portable construct: command1 && ! command2 | command3 which must be command1 && ! (command2 | command3) to work on bsd shells (this is another example of bbf08124, which fixed several similar cases). Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jeff King committed Oct 13, 2008 at 05:35 UTC 72130808173d3dfee85f2a29548fa9fec33a5351
1 file changed +1 -1
t/t4128-apply-root.sh
+1 -1
@@ -72,7 +72,7 @@ test_expect_success 'apply --directory (delete file)' '
72 echo content >some/sub/dir/delfile &&
73 git add some/sub/dir/delfile &&
74 git apply --directory=some/sub/dir/ --index patch &&
75 - ! git ls-files | grep delfile
75 + ! (git ls-files | grep delfile)
76 '
77
78 cat > patch << 'EOF'