This changes parse_args from a simple single-quote split into a character-by-character parser that tracks both single- and double-quoted sections. As a result, inputs like echo "hello world" now stay grouped as one argument, and adjacent quoted segments are concatenated consistently, which also updates the previous behavior for cases like 'hello''world'. The accompanying tests lock in the new quoting behavior, making command parsing more predictable for real shell-style input.