csc360-a1-shell/ruby
Sami Samhuri 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
..
shell [ruby] Modernize Ruby shell parsing and expansion, add C compat test mode (#4) 2026-02-07 15:18:41 -08:00
test [ruby] Modernize Ruby shell parsing and expansion, add C compat test mode (#4) 2026-02-07 15:18:41 -08:00
.ruby-version Update to Ruby 4, update gems, s/rubocop/standard/ 2026-01-02 12:40:38 -08:00
.standard.yml Update to Ruby 4, update gems, s/rubocop/standard/ 2026-01-02 12:40:38 -08:00
a1 Make ruby -w shebang portable 2026-01-02 12:55:33 -08:00
Gemfile [ruby] Modernize Ruby shell parsing and expansion, add C compat test mode (#4) 2026-02-07 15:18:41 -08:00
Gemfile.lock [ruby] Modernize Ruby shell parsing and expansion, add C compat test mode (#4) 2026-02-07 15:18:41 -08:00
Guardfile Add guard gem 2026-01-02 14:50:38 -08:00
Rakefile Update to Ruby 4, update gems, s/rubocop/standard/ 2026-01-02 12:40:38 -08:00
shell.rb Update to Ruby 4, update gems, s/rubocop/standard/ 2026-01-02 12:40:38 -08:00