summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-09-11 15:27:54 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-09-11 15:27:54 +0200
commita1120710a40fd1ac8fae1d68da9c3fe3fb407da2 (patch)
treeab9bf34a6e0ddd6cbd95d04fcfc93db2259089d6
parentHuge fix (diff)
download42-minishell-a1120710a40fd1ac8fae1d68da9c3fe3fb407da2.tar.gz
42-minishell-a1120710a40fd1ac8fae1d68da9c3fe3fb407da2.tar.bz2
42-minishell-a1120710a40fd1ac8fae1d68da9c3fe3fb407da2.tar.xz
42-minishell-a1120710a40fd1ac8fae1d68da9c3fe3fb407da2.tar.zst
42-minishell-a1120710a40fd1ac8fae1d68da9c3fe3fb407da2.zip
TODO update
-rw-r--r--TODO.org2
-rw-r--r--src/p_lblock_next.c1
-rw-r--r--src/s_com.c4
-rw-r--r--src/s_lpipes.c3
4 files changed, 4 insertions, 6 deletions
diff --git a/TODO.org b/TODO.org
index b38f114..e52ad7d 100644
--- a/TODO.org
+++ b/TODO.org
@@ -9,7 +9,7 @@
** DONE [#A] Go full tok + quotes
** DONE [#A] fix \; \&& \||
** DONE [#A] Variables quotes qwe="okokoko kkok" asd='bav'
-** TODO [#A] Fix PSX \stuff subst with "" ''
+** DONE [#A] Fix PSX \stuff subst with "" ''
** DONE [#A] ls qweqwe; echo $? <---- substitute
** TODO [#A] <>>
** TODO [#A] SEGV on pipes
diff --git a/src/p_lblock_next.c b/src/p_lblock_next.c
index e5e46dc..8d89cf3 100644
--- a/src/p_lblock_next.c
+++ b/src/p_lblock_next.c
@@ -69,7 +69,6 @@ static char
ft_strlcpy(word + (i + ft_strlen(varval)), tmp, ft_strlen(tmp) + 1);
count = 0;
*(p) = word + (i + ft_strlen(varval) - 1);
- ft_printf("[%s]\n", word);
return (word);
}
diff --git a/src/s_com.c b/src/s_com.c
index ee55c58..6d6ee09 100644
--- a/src/s_com.c
+++ b/src/s_com.c
@@ -20,7 +20,7 @@
#include "s_struct.h"
static int8_t
- fill_com(char *words[], t_com **com)
+ s_fill_com(char *words[], t_com **com)
{
/* TODO: norme */
uint64_t i;
@@ -121,7 +121,7 @@ t_com
words = p_check_args_equals(words, msh);
if (msh->env_fork_tmp[0][0] != '\0')
s_com_cpy_env_fork(&com, msh);
- if (fill_com(words, &com) < 0)
+ if (s_fill_com(words, &com) < 0)
{
ft_delwords(words);
return (NULL);
diff --git a/src/s_lpipes.c b/src/s_lpipes.c
index 0c1a6ea..04320b8 100644
--- a/src/s_lpipes.c
+++ b/src/s_lpipes.c
@@ -62,8 +62,7 @@ void
}
struct s_lpipes
- *s_lpipes_new(const char pipedword[],
- t_msh *msh)
+ *s_lpipes_new(const char pipedword[], t_msh *msh)
{
struct s_lpipes *link;