Commit graph

9 commits

Author SHA1 Message Date
4f4e97475b
[ruby] Modernize Ruby shell parsing and expansion, add C compat test mode (#4)
Replace Ruby's old wordexp-like command splitting with a tokenizer and
parser that understands ; and && while honoring quotes and nesting.

Implement richer expansions for command substitution, arithmetic,
parameter defaults (${var:-...}), brace expansion, and escaped
dollar/backtick behavior via shared quote-state handling.

Expand the test suite with parser/expansion edge cases, escaping
parity checks, builtin usage validation, and job-control refresh tests.

Keep C green by adding a compat test profile for c/Makefile test and
by returning nonzero on builtin failures in -c mode, including clearer
`bg` usage output.
2026-02-07 15:18:41 -08:00
79ba26c76b
Ditch wordexp and modify Shellwords code to make it work 2026-01-02 15:47:09 -08:00
f261ce9cb8
Add tests for more wordexp features 2026-01-02 14:36:31 -08:00
2f4b5d904d
Fix tests on Ubuntu on GitHub Actions 2026-01-02 13:09:17 -08:00
f72ddf7f32
Update to Ruby 4, update gems, s/rubocop/standard/ 2026-01-02 12:40:38 -08:00
996feaf62c
Update gems and add .ruby-version 2023-02-13 23:26:44 -08:00
6cf858fbfc
[c] Make tests pass and get rid of queue_message 2022-01-22 17:08:13 -08:00
f16bd5f814
Allow overriding test executable with env var A1_PATH 2022-01-22 15:35:58 -08:00
b4a1f28a11
Fix tests and add rake task 2022-01-21 20:26:05 -08:00