NataliaMedeiros / minishell

1 stars 0 forks source link

Test echo #9

Open NataliaMedeiros opened 3 months ago

NataliaMedeiros commented 3 months ago

When made the final test for echo function, do not forget to test the following commands:

echo echo -n echo -n hello echo -nnnn -n -n -n -n -nnnn hello echo -n -nnnnhello echo -nhello echo -n "-n hello" -> should return -n hello[prompt] echo -n '-n hello' -> should return -n hello[prompt] echo $ echo $HOME echo $home echo $"HOME" -> should return HOME echo $'HOME' -> should return HOME echo "$HOME" echo '$HOME' -> should return $HOME echo $HOME and $USER echo "$HOME and '$USER'" -> return ex: /Users/natalia and 'natalia' echo "$HOME '$duda' $USER" echo "$HOME" '$duda' "$USER" echo "$ HOME" -> should return $ HOME echo $HO - echo "$hom echo "$HOME '$duda' $USER" -> should return /Users/natalia '' natalia echo "$ HOME" echo "'$HOME"

edooarda commented 2 months ago

echo bla > 2 | cat |echo het > 4 | ls | cat main.c > 3 | ls

if there is no space is eating the E from the echo