Skip to content

fix(echo): support combined flags and fix test expectations#106

Merged
chaliy merged 1 commit intomainfrom
claude/fix-echo-tests-QhCGF
Feb 3, 2026
Merged

fix(echo): support combined flags and fix test expectations#106
chaliy merged 1 commit intomainfrom
claude/fix-echo-tests-QhCGF

Conversation

@chaliy
Copy link
Contributor

@chaliy chaliy commented Feb 3, 2026

Summary

  • Add support for combined flags like -en, -ne, -neE in echo builtin
  • Fix echo_escape_octal test to use correct \0nnn format (bash echo uses this format)
  • Enable 5 previously skipped echo tests

Changes

  • echo.rs: Refactor flag parsing to handle combined options
  • echo.test.sh: Enable 5 tests and fix octal escape test expectation
  • spec_tests.rs: Update TODO tracking comments
  • 004-testing.md: Update test counts

Test plan

  • cargo test --features http_client passes
  • cargo test --test spec_tests -- bash_comparison_tests passes (309/309 match real bash)
  • 5 new spec tests enabled and passing

https://claude.ai/code/session_014PwJPpXSYYYszKvRD16Npx

- Add support for combined flags like -en, -ne, -neE in echo builtin
- Fix echo_escape_octal test to use correct \0nnn format (bash echo format)
- Enable 5 previously skipped echo tests:
  - echo_combined_en, echo_combined_ne (combined flags)
  - echo_E_flag (-E flag already worked)
  - echo_escape_hex, echo_escape_octal (escapes already worked)

Test results: 330/435 spec tests passing, 309/309 match real bash

https://claude.ai/code/session_014PwJPpXSYYYszKvRD16Npx
@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@chaliy chaliy merged commit 67c314f into main Feb 3, 2026
8 checks passed
@chaliy chaliy deleted the claude/fix-echo-tests-QhCGF branch February 3, 2026 04:43
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.

2 participants