fixed echo and updated todo_list
This commit is contained in:
@ -6,7 +6,7 @@
|
|||||||
/* By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ */
|
/* By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2024/02/07 15:30:37 by tomoron #+# #+# */
|
/* 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')
|
while (args->value[i] == 'n')
|
||||||
i++;
|
i++;
|
||||||
if (!args->value[i])
|
if (!args->value[i] && i > 1)
|
||||||
put_nl = 0;
|
put_nl = 0;
|
||||||
else
|
else
|
||||||
ft_printf("%s ", args->value);
|
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
|
#invalid command, followed by empty variable, should clear the exit code
|
||||||
doesntexist
|
doesntexist
|
||||||
$EMPTY
|
$EMPTY
|
||||||
echo $?
|
echo $?
|
||||||
|
|
||||||
# Should skip the empty argument, and print hello after spaces
|
|
||||||
echo - "" " " hello
|
|
||||||
|
|
||||||
|
|
||||||
NORME :c
|
|
||||||
|
|
||||||
|
|
||||||
To test:
|
To test:
|
||||||
|
|
||||||
test signals
|
test signals
|
||||||
|
Reference in New Issue
Block a user