mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-30 11:21:15 -03:00
Fix builtin_test to properly handle last expression in a combining expression
This commit is contained in:
@@ -649,6 +649,11 @@ static void test_test() {
|
||||
assert(run_test_test(1, L"-x /bin/ls_not_a_path"));
|
||||
assert(run_test_test(0, L"-d /bin/"));
|
||||
assert(run_test_test(1, L"-d /bin/ls"));
|
||||
|
||||
/* This failed at once point */
|
||||
assert(run_test_test(1, L"-d /bin -a 5 -eq 3"));
|
||||
assert(run_test_test(0, L"-d /bin -o 5 -eq 3"));
|
||||
assert(run_test_test(0, L"-d /bin -a ! 5 -eq 3"));
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user