summaryrefslogtreecommitdiffstats
path: root/src/p_lblock.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-10-22 16:26:01 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-10-22 16:26:01 +0200
commit37040d7917928f5666717dc9b238a3246d470fbe (patch)
tree32f66d443db46959cc77aba5897b29a84377351d /src/p_lblock.c
parentWork to do (diff)
download42-minishell-37040d7917928f5666717dc9b238a3246d470fbe.tar.gz
42-minishell-37040d7917928f5666717dc9b238a3246d470fbe.tar.bz2
42-minishell-37040d7917928f5666717dc9b238a3246d470fbe.tar.xz
42-minishell-37040d7917928f5666717dc9b238a3246d470fbe.tar.zst
42-minishell-37040d7917928f5666717dc9b238a3246d470fbe.zip
Fix
Diffstat (limited to 'src/p_lblock.c')
-rw-r--r--src/p_lblock.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/p_lblock.c b/src/p_lblock.c
index 36f2e12..82d1b44 100644
--- a/src/p_lblock.c
+++ b/src/p_lblock.c
@@ -42,7 +42,7 @@ static uint8_t p_get_nextif(char *words[], size_t i)
return (nextif);
}
-static t_bool p_find_good_pipe(const char word[])
+t_bool p_find_good_pipe(const char word[])
{
char *ptr;
t_quote_mode mode;
@@ -76,16 +76,6 @@ static int8_t p_loop(char *words[], t_msh *msh)
while (words[i] != NULL)
{
nextif = p_get_nextif(words, i);
- if (p_find_good_pipe(words[i]) == TRUE)
- {
- if ((link = s_line_new(NULL, 0)) == NULL)
- return (-1);
- s_line_add_back(&msh->curr, link);
- if ((s_split_pipes(words[i], msh)) == NULL)
- return (-1);
- i++;
- continue ;
- }
if ((link = s_line_new(words[i], nextif)) == NULL)
return (-1);
s_line_add_back(&msh->curr, link);