diff --git a/brush-shell/tests/cases/builtins/command.yaml b/brush-shell/tests/cases/builtins/command.yaml index c2f5e73d..8bfe9495 100644 --- a/brush-shell/tests/cases/builtins/command.yaml +++ b/brush-shell/tests/cases/builtins/command.yaml @@ -21,8 +21,8 @@ cases: - name: "command -v" stdin: | command -v echo - command -v ls - command -v $(which ls) + command -v cat + command -v $(command -v cat) command -v non-existent || echo "1. Not found" command -v /usr/bin/non-existent || echo "2. Not found" diff --git a/brush-shell/tests/cases/builtins/dot.yaml b/brush-shell/tests/cases/builtins/dot.yaml index 594b8554..31e28f5e 100644 --- a/brush-shell/tests/cases/builtins/dot.yaml +++ b/brush-shell/tests/cases/builtins/dot.yaml @@ -35,7 +35,7 @@ cases: } stdin: | var="orig" - source script.sh + source ./script.sh echo "var: ${var}" script_func diff --git a/brush-shell/tests/cases/extended_tests.yaml b/brush-shell/tests/cases/extended_tests.yaml index b100f686..a0afce24 100644 --- a/brush-shell/tests/cases/extended_tests.yaml +++ b/brush-shell/tests/cases/extended_tests.yaml @@ -184,9 +184,10 @@ cases: stdin: | regex="^$" - [[ "" =~ '' ]] && echo "1. Matched" + # TODO: The commented out lines appear differ in behavior between versions of bash. + # [[ "" =~ '' ]] && echo "1. Matched" [[ "" =~ '^$' ]] && echo "2. Matched" - [[ "" =~ "" ]] && echo "3. Matched" + # [[ "" =~ "" ]] && echo "3. Matched" [[ "" =~ "^$" ]] && echo "4. Matched" [[ "" =~ ^$ ]] && echo "5. Matched" [[ "" =~ ${regex} ]] && echo "6. Matched" diff --git a/brush-shell/tests/cases/word_expansion.yaml b/brush-shell/tests/cases/word_expansion.yaml index bd53ffda..f38040ac 100644 --- a/brush-shell/tests/cases/word_expansion.yaml +++ b/brush-shell/tests/cases/word_expansion.yaml @@ -693,7 +693,7 @@ cases: echo "\${arr2@Q}: ${arr2@Q}" - name: "Parameter quote transformations - K" - known_failure: true + skip: true # TODO: Figure out why this succeeds on macOS but fails on Linux stdin: | var='""' echo "\${var@K}: ${var@K}" @@ -720,7 +720,7 @@ cases: echo "\${arr2[*]@K}: ${arr2[*]@K}" - name: "Parameter quote transformations - k" - known_failure: true + skip: true # TODO: Figure out why this succeeds on macOS but fails on Linux stdin: | var='""' echo "\${var@k}: ${var@k}"