csc360-a1-shell/c
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
..
builtins.c [ruby] Modernize Ruby shell parsing and expansion, add C compat test mode (#4) 2026-02-07 15:18:41 -08:00
builtins.h [c] Format code 2022-01-22 16:08:32 -08:00
dependency-dir Move C implementation into its own subdirectory 2022-01-16 15:03:44 -08:00
exec.c [c] Make tests pass and get rid of queue_message 2022-01-22 17:08:13 -08:00
exec.h [c] Format code 2022-01-22 16:08:32 -08:00
jobs.c [c] Make tests pass and get rid of queue_message 2022-01-22 17:08:13 -08:00
jobs.h [c] Format code 2022-01-22 16:08:32 -08:00
main.c [ruby] Modernize Ruby shell parsing and expansion, add C compat test mode (#4) 2026-02-07 15:18:41 -08:00
Makefile [ruby] Modernize Ruby shell parsing and expansion, add C compat test mode (#4) 2026-02-07 15:18:41 -08:00
utils.c [c] Remove debugging output 2022-01-22 16:28:54 -08:00
utils.h [c] Remove debugging output 2022-01-22 16:28:54 -08:00