NataliaMedeiros / minishell

0 stars 0 forks source link

Echo command #5

Closed edooarda closed 1 month ago

edooarda commented 1 month ago

The command echo, when is used without an argument, is giving a seg fault.

edooarda commented 1 month ago

echo -n only, need to return a flag.

[minishell]: echo -n flag 0 struct[1]: echo -n outfile: None infile: None -n

echo only return new line, echo -n, return nothing (flag 1)

edooarda commented 1 month ago

Remove space from echo argument on end of struct

edooarda commented 1 month ago

This could be in execution, or on the $ or in the echo

Case: echo $? return the exit code (for example 1 or 127)

return of it:

[minishell]: echo $? hello flag 0 struct[1]: echo <- JS_DEBUG_TOPICS=JS ERROR;JS LOG?<- outfile: None infile: None JS_DEBUG_TOPICS=JS ERROR;JS LOG?

NataliaMedeiros commented 1 month ago

Fix command echo $"HOME", it's not returning the right value