diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-10-06 17:40:58 +0200 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-10-06 17:40:58 +0200 |
| commit | 22ff0337dc23239c32cc738bb6f576b8a0b66f8b (patch) | |
| tree | 215d56c87db9a21394b41251ee5790a88ebb0754 /src/parser | |
| parent | 89bd998bcf0839a83daf16ab9b1e8ae568a8a9f2 (diff) | |
| download | minishell-22ff0337dc23239c32cc738bb6f576b8a0b66f8b.tar.gz minishell-22ff0337dc23239c32cc738bb6f576b8a0b66f8b.tar.bz2 minishell-22ff0337dc23239c32cc738bb6f576b8a0b66f8b.zip | |
Fixing macos error messages and SHLVL
Diffstat (limited to 'src/parser')
| -rw-r--r-- | src/parser/parser.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parser/parser.c b/src/parser/parser.c index 80f7349..99c9c8b 100644 --- a/src/parser/parser.c +++ b/src/parser/parser.c @@ -6,7 +6,7 @@ /* By: nahaddac <nahaddac@student.42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/06/17 18:09:04 by nahaddac #+# #+# */ -/* Updated: 2020/10/06 16:26:48 by cacharle ### ########.fr */ +/* Updated: 2020/10/06 17:28:31 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -45,7 +45,7 @@ t_parsed *parse_redir(t_tok_lst *input, t_tok_lst **redirs) && input->next != NULL && input->next->tag & TAG_IS_STR) tok_lst_push_back(redirs, tok_lst_uncons(&input)); if (input == NULL) - return (NULL); + return (parsed_error("syntax error near unexpected token `newline'\n")); if (!(input->tag & TAG_IS_STR)) return (parsed_error("syntax error near unexpected token `%s'\n", input->content)); tok_lst_push_back(redirs, tok_lst_uncons(&input)); |
