Skip to content

shell: close remaining conformance xfails - #774

Merged
ewhauser merged 6 commits into
mainfrom
ewhauser/conformance-xfails
Mar 29, 2026
Merged

ewhauser merged 6 commits into
mainfrom
ewhauser/conformance-xfails

Conversation

@ewhauser

Copy link
Copy Markdown
Owner

Summary

  • fix backquote parsing and recovery for the remaining command-sub conformance failures
  • allow bracket-pattern glob words inside compound array assignments
  • normalize ls missing-path exit status to match bash and remove the last stale cross-platform xfails

Root cause

The remaining cross-platform xfails were split across three issues:

  1. backquotes nested inside double quotes were not recovered the way bash does, which broke both tokenization inside [[ ... ]] and malformed-substitution runtime diagnostics
  2. compound array assignment parsing treated words like pkg0[0-3] as indexed assignment candidates instead of glob words
  3. the ls builtin returned exit status 2 for missing operands, while bash returns 1 for runtime missing-path failures

Testing

  • targeted go test coverage for syntax, builtins, and runtime regressions
  • make conformance-test CONFORMANCE_RUN='TestConformance/bash/oils/command-sub.test.sh'
  • make conformance-test CONFORMANCE_RUN='TestConformance/bash/oils/glob.test.sh'
  • make conformance-test CONFORMANCE_RUN='TestConformance/bash/oils/smoke.test.sh'
  • make conformance-test CONFORMANCE_RUN='TestConformance/bash/oils/alias.test.sh'
  • python3 .agents/skills/conformance-prompt/scripts/xfails.py --total
  • make lint

@ewhauser
ewhauser marked this pull request as ready for review March 28, 2026 23:02
@ewhauser ewhauser changed the title [codex] shell: close remaining conformance xfails shell: close remaining conformance xfails Mar 28, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c313d8a3e6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread shell/syntax/parser.go Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a73b314d69

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread shell/syntax/parser.go Resolved
Comment thread shell/syntax/parser.go Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 697fe666a3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread shell/syntax/parser.go Resolved
Comment thread shell/syntax/parser.go Resolved
Comment thread shell/syntax/parser.go Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6349cf8872

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread shell/syntax/parser.go Resolved
@ewhauser
ewhauser merged commit 2dc9d63 into main Mar 29, 2026
16 checks passed
@ewhauser
ewhauser deleted the ewhauser/conformance-xfails branch March 29, 2026 00:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant