Closed emartinez-dev closed 1 year ago
The -n flag can be interpreted in a lot of different ways and there are some border cases that I have been testing
Execute echo with weird -n arg combinations
minishell Minishell $> echo -nn hola -nn hola minishell Minishell $> echo -n -n -n hola -n -n hola minishell Minishell $> minishell Minishell $> echo -n"-n" hola -n hola minishell Minishell $> echo "-nnnn" hola -nnnn hola minishell Minishell $>
emartinez@Enrique-HP:~$ echo -nn hola holaemartinez@Enrique-HP:~$ echo -n -n -n hola holaemartinez@Enrique-HP:~$ emartinez@Enrique-HP:~$ echo -n"-n" hola -n-n hola emartinez@Enrique-HP:~$ echo "-nnnn" hola holaemartinez@Enrique-HP:~$
Fix it!
Description
The -n flag can be interpreted in a lot of different ways and there are some border cases that I have been testing
How to reproduce
Execute echo with weird -n arg combinations
Result
Expected result