summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-04-27 16:16:13 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-04-27 16:16:13 +0200
commit47d2d539c74386eceb05dee7cd07adf43688014f (patch)
tree556e874d3452ec193952074b52438c1c7cc922b5 /src
parentTODO update (diff)
download42-minishell-47d2d539c74386eceb05dee7cd07adf43688014f.tar.gz
42-minishell-47d2d539c74386eceb05dee7cd07adf43688014f.tar.bz2
42-minishell-47d2d539c74386eceb05dee7cd07adf43688014f.tar.xz
42-minishell-47d2d539c74386eceb05dee7cd07adf43688014f.tar.zst
42-minishell-47d2d539c74386eceb05dee7cd07adf43688014f.zip
Fixed relative pathn exec
Diffstat (limited to 'src')
-rw-r--r--src/ft_e_externs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ft_e_externs.c b/src/ft_e_externs.c
index 4cdcc3c..07bd9e1 100644
--- a/src/ft_e_externs.c
+++ b/src/ft_e_externs.c
@@ -70,7 +70,8 @@ void
if (ft_ischarset("/.", ptr->com[0]))
{
- /* TODO: ft_get_physical_path(ptr->com); */
+ ft_exec_path(ptr->com, ptr, msh);
+ return ;
}
else if ((envpath = ft_get_env_path(msh)) != NULL)
{