summaryrefslogtreecommitdiffstats
path: root/src/p_args.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-09-04 22:24:49 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-09-04 22:24:49 +0200
commit385b5c002a83d4683d29d9d4f306d929e1ad1e41 (patch)
tree57a30de3dc9da05da4b98103164a01d859266b93 /src/p_args.c
parentTime to escape chars (diff)
download42-minishell-385b5c002a83d4683d29d9d4f306d929e1ad1e41.tar.gz
42-minishell-385b5c002a83d4683d29d9d4f306d929e1ad1e41.tar.bz2
42-minishell-385b5c002a83d4683d29d9d4f306d929e1ad1e41.tar.xz
42-minishell-385b5c002a83d4683d29d9d4f306d929e1ad1e41.tar.zst
42-minishell-385b5c002a83d4683d29d9d4f306d929e1ad1e41.zip
gotta do stuff
Diffstat (limited to 'src/p_args.c')
-rw-r--r--src/p_args.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/p_args.c b/src/p_args.c
index c25fc40..9ce0230 100644
--- a/src/p_args.c
+++ b/src/p_args.c
@@ -17,6 +17,7 @@
#include "d_define.h"
#include "p_args.h"
#include "p_args_next.h"
+#include "p_args_escape.h"
#include "p_args_quotes.h"
/* ================= */
@@ -139,9 +140,9 @@ static char
p_del_alloced_words(words, to_del);
return (NULL);
}
- p_print(words);
- p_escape_chars(words);
+ p_args_escape_chars(words);
p_args_quotes(words);
+ p_print(words);
return (words);
}
@@ -156,11 +157,9 @@ char
{
if ((words = p_split_words_no_rdr(word)) == NULL)
return (NULL);
- p_print(words);
exit(0);
return (words);
}
- p_print(words);
return (words);
/* char **words; */
/* char *subst; */