Commit graph

5 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
f72ddf7f32
Update to Ruby 4, update gems, s/rubocop/standard/ 2026-01-02 12:40:38 -08:00
58f1e48cd2
[ruby] Implement clear and actually use builtin pwd instead of /bin/pwd 2022-01-21 17:43:04 -08:00
5bb03eb2a2
[ruby] Implement bglist and bgkill 2022-01-21 17:39:52 -08:00
9f0eb1378b Extract remaining code from main.rb 2022-01-17 21:30:30 -08:00
Renamed from ruby/builtins.rb (Browse further)