Skip to content

[codex] Implement awk phase 2 basics#240

Draft
matt-dz wants to merge 8 commits intocodex/awk-phase-1from
codex/awk-phase-2
Draft

[codex] Implement awk phase 2 basics#240
matt-dz wants to merge 8 commits intocodex/awk-phase-1from
codex/awk-phase-2

Conversation

@matt-dz
Copy link
Copy Markdown
Collaborator

@matt-dz matt-dz commented May 7, 2026

Summary

Adds the first Phase 2 awk slice on top of Phase 1:

  • if / else statements
  • next
  • printf
  • scalar builtins: length, substr, index, tolower, toupper, int
  • docs and symbol allowlist updates
  • original Go and scenario coverage for the new behavior

Notes

This intentionally keeps regex FS, range patterns, arrays, loops, and field mutation / $0 rebuilding deferred for later Phase 2 work.

Verification

  • make fmt
  • go test ./builtins/awk ./builtins/tests/awk ./analysis
  • go test ./tests -run 'TestShellScenarios/.*/cmd/awk/'
  • go test ./...
  • RSHELL_BASH_TEST=1 go test ./tests/ -run TestShellScenariosAgainstBash -timeout 120s
  • make build

Copy link
Copy Markdown
Collaborator Author

matt-dz commented May 7, 2026

@codex review this PR

Codex-only review loop pass 1. Please review the current head after f207997 and leave actionable inline findings only. Use P0/P1/P2/P3 severity prefixes.

Copy link
Copy Markdown

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

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: f20799790b

ℹ️ 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 builtins/awk/eval.go
Comment thread builtins/awk/eval.go Outdated
Copy link
Copy Markdown
Collaborator Author

matt-dz commented May 7, 2026

@codex review this PR

Codex-only review loop pass 2. Please review the current head after 1288d52 and leave actionable inline findings only. Use P0/P1/P2/P3 severity prefixes.

Copy link
Copy Markdown

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

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: 1288d52681

ℹ️ 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 builtins/awk/printf.go Outdated
Comment thread builtins/awk/printf.go Outdated
Copy link
Copy Markdown
Collaborator Author

matt-dz commented May 7, 2026

@codex review this PR

Codex-only review loop pass 3. Please review the current head after a1d41e1 and leave actionable inline findings only. Use P0/P1/P2/P3 severity prefixes.

Copy link
Copy Markdown

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

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: a1d41e1697

ℹ️ 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 builtins/awk/parser.go
Comment thread builtins/awk/printf.go Outdated
Copy link
Copy Markdown
Collaborator Author

matt-dz commented May 7, 2026

@codex review this PR

Codex-only review loop pass 4. Please review the current head after 8dcb947 and leave actionable inline findings only. Use P0/P1/P2/P3 severity prefixes.

Copy link
Copy Markdown

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

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: 8dcb947ddb

ℹ️ 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 builtins/awk/printf.go Outdated
Copy link
Copy Markdown
Collaborator Author

matt-dz commented May 7, 2026

@codex review this PR

Codex-only review loop pass 5. Please review the current head after e0be142 and leave actionable inline findings only. Use P0/P1/P2/P3 severity prefixes.

Copy link
Copy Markdown

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

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: e0be142a4e

ℹ️ 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 builtins/awk/parser.go
Comment thread builtins/awk/parser.go
Comment thread builtins/awk/eval.go Outdated
Copy link
Copy Markdown
Collaborator Author

matt-dz commented May 7, 2026

@codex review this PR

Codex-only review loop pass 6. Please review the current head after 78d93cb and leave actionable inline findings only. Use P0/P1/P2/P3 severity prefixes.

Copy link
Copy Markdown

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

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: 78d93cbfae

ℹ️ 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 builtins/awk/printf.go Outdated
Copy link
Copy Markdown
Collaborator Author

matt-dz commented May 7, 2026

@codex review this PR

Codex-only review loop pass 7. Please review the current head after d9fbed6 and leave actionable inline findings only. Use P0/P1/P2/P3 severity prefixes.

Copy link
Copy Markdown

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

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: d9fbed6a6d

ℹ️ 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 builtins/awk/parser.go
Comment thread builtins/awk/parser.go
Copy link
Copy Markdown
Collaborator Author

matt-dz commented May 7, 2026

@codex review this PR

Codex-only review loop pass 8. Please review the current head after 24f0fce and leave actionable inline findings only. Use P0/P1/P2/P3 severity prefixes.

Copy link
Copy Markdown
Collaborator Author

matt-dz commented May 7, 2026

@codex review this PR

Codex-only review loop pass 8 retry. The prior pass 8 request did not receive an acknowledgement after 10 minutes. Please review the current head after 24f0fce and leave actionable inline findings only. Use P0/P1/P2/P3 severity prefixes.

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

ℹ️ 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".

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