sophiakoulen / minishell

A simplified bash-like shell, with pipes, redirections and variable expansion.
4 stars 1 forks source link

shout -n prints the '-N' too #147

Closed sophiakoulen closed 1 year ago

znichola commented 1 year ago

I think we should make the echo get option code a general function, it's basically copypasted for the ast print and would come in handy for this.

Also I was thinking that it might be a nice idea to have shout treat the string and send over the modified version to echo, this way we also minimise the duplication.

sophiakoulen commented 1 year ago

fixed with 66ea1ac1268b3014a71570f97c0a51272c7ae0d2