diff --git a/42sh/src/exec/process_setgroup.c b/42sh/src/exec/process_setgroup.c index e255b3ed..37cf1b81 100644 --- a/42sh/src/exec/process_setgroup.c +++ b/42sh/src/exec/process_setgroup.c @@ -6,7 +6,7 @@ /* By: jhalford +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2016/12/13 17:48:10 by jhalford #+# #+# */ -/* Updated: 2017/03/08 20:53:48 by jhalford ### ########.fr */ +/* Updated: 2017/03/09 14:28:39 by jhalford ### ########.fr */ /* */ /* ************************************************************************** */ diff --git a/42sh/src/lexer/lexer_end.c b/42sh/src/lexer/lexer_end.c index ec527e69..3ae67e26 100644 --- a/42sh/src/lexer/lexer_end.c +++ b/42sh/src/lexer/lexer_end.c @@ -6,7 +6,7 @@ /* By: jhalford +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2017/03/05 16:58:24 by jhalford #+# #+# */ -/* Updated: 2017/03/08 17:52:05 by ariard ### ########.fr */ +/* Updated: 2017/03/09 14:31:23 by jhalford ### ########.fr */ /* */ /* ************************************************************************** */ @@ -16,6 +16,8 @@ int lexer_end(t_list **alst, t_lexer *lexer) { t_token *token; + if (lexer->str[lexer->pos] == '#') + while (lexer->str[++lexer->pos]); if (*alst && (lexer->state == QUOTE || lexer->state == DQUOTE || lexer->state == BQUOTE)) diff --git a/42sh/src/lexer/lexer_lex.c b/42sh/src/lexer/lexer_lex.c index 7a32b1d7..ec448add 100644 --- a/42sh/src/lexer/lexer_lex.c +++ b/42sh/src/lexer/lexer_lex.c @@ -6,7 +6,7 @@ /* By: jhalford +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2017/02/09 17:08:51 by jhalford #+# #+# */ -/* Updated: 2017/03/08 15:51:39 by jhalford ### ########.fr */ +/* Updated: 2017/03/09 14:29:15 by jhalford ### ########.fr */ /* */ /* ************************************************************************** */ diff --git a/42sh/src/main/main.c b/42sh/src/main/main.c index af3473a1..737c63d0 100644 --- a/42sh/src/main/main.c +++ b/42sh/src/main/main.c @@ -6,7 +6,7 @@ /* By: jhalford +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2016/12/06 18:40:58 by jhalford #+# #+# */ -/* Updated: 2017/03/08 23:54:53 by ariard ### ########.fr */ +/* Updated: 2017/03/09 14:28:51 by jhalford ### ########.fr */ /* */ /* ************************************************************************** */ @@ -39,8 +39,6 @@ int handle_instruction(int fd) ft_strappend(&lexer.str, str); if (get_lexer_stack(lexer) == BACKSLASH) pop(&lexer.stack); - /* else if (get_lexer_stack(lexer) == DLESS) */ - /* lexer.state = DLESS; */ ltoken = ft_lstlast(token); if (lexer_lex(token ? <oken : &token, &lexer)) return (1);