fixed echo and updated todo_list
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
/* By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/02/07 15:30:37 by tomoron #+# #+# */
|
||||
/* Updated: 2024/04/18 20:48:52 by marde-vr ### ########.fr */
|
||||
/* Updated: 2024/04/24 14:52:21 by marde-vr ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -39,7 +39,7 @@ int echo(t_token *args)
|
||||
{
|
||||
while (args->value[i] == 'n')
|
||||
i++;
|
||||
if (!args->value[i])
|
||||
if (!args->value[i] && i > 1)
|
||||
put_nl = 0;
|
||||
else
|
||||
ft_printf("%s ", args->value);
|
||||
|
@ -1,17 +1,8 @@
|
||||
cat <minishell.h <<HERE <missing <<DOC | echo oi
|
||||
|
||||
#invalid command, followed by empty variable, should clear the exit code
|
||||
doesntexist
|
||||
$EMPTY
|
||||
echo $?
|
||||
|
||||
# Should skip the empty argument, and print hello after spaces
|
||||
echo - "" " " hello
|
||||
|
||||
|
||||
NORME :c
|
||||
|
||||
|
||||
To test:
|
||||
|
||||
test signals
|
||||
|
Reference in New Issue
Block a user