mirror of
https://codeberg.org/la-chouette/minishell.git
synced 2025-12-06 07:28:09 +01:00
parse-cmd: Just a forgotten check to be reviewed later.
This commit is contained in:
parent
5f95751b36
commit
fea514ea63
1 changed files with 3 additions and 1 deletions
|
|
@ -6,7 +6,7 @@
|
||||||
/* By: jguelen <marvin@42.fr> +#+ +:+ +#+ */
|
/* By: jguelen <marvin@42.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2025/03/31 10:28:28 by jguelen #+# #+# */
|
/* Created: 2025/03/31 10:28:28 by jguelen #+# #+# */
|
||||||
/* Updated: 2025/04/04 18:21:17 by jguelen ### ########.fr */
|
/* Updated: 2025/04/04 18:38:59 by jguelen ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
|
|
@ -69,6 +69,8 @@ t_cmd *minishell_parse(t_minishell *app, char *command_line)
|
||||||
t_cmd *root_cmd;
|
t_cmd *root_cmd;
|
||||||
|
|
||||||
builder.tokens = minishell_wordsplit(command_line);
|
builder.tokens = minishell_wordsplit(command_line);
|
||||||
|
if (!builder.tokens)
|
||||||
|
return (NULL);
|
||||||
root_cmd = minishell_cmds_parse(app, &builder);
|
root_cmd = minishell_cmds_parse(app, &builder);
|
||||||
if (!root_cmd || builder.tokens)
|
if (!root_cmd || builder.tokens)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue