refactoring exec
This commit is contained in:
@@ -6,14 +6,12 @@
|
||||
/* By: lperrey <lperrey@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2021/11/16 01:57:38 by lperrey #+# #+# */
|
||||
/* Updated: 2021/11/29 12:26:08 by lperrey ### ########.fr */
|
||||
/* Updated: 2021/12/01 16:07:48 by lperrey ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "minishell.h"
|
||||
|
||||
// https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_09_01_01
|
||||
|
||||
int exec_cmd_line(t_all *c)
|
||||
{
|
||||
if (!pipeline(c))
|
||||
@@ -23,3 +21,9 @@ int exec_cmd_line(t_all *c)
|
||||
}
|
||||
return (1);
|
||||
}
|
||||
|
||||
/*
|
||||
2.9.1 Simple Commands - Command Search and Execution
|
||||
https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html
|
||||
#tag_18_09_01_01
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user