Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Benoit
minishell
Commits
8e08463c
Commit
8e08463c
authored
Jan 21, 2021
by
abenoit
Browse files
unset path error rework
parent
c110d42a
Changes
3
Hide whitespace changes
Inline
Side-by-side
?
0 → 100644
View file @
8e08463c
$
src/execution/launch_command.c
View file @
8e08463c
...
...
@@ -85,6 +85,9 @@ static int launch_ext(char **args, t_xe *xe)
char
**
path
;
ret
=
SUCCESS
;
ret
=
get_var_pos
(
xe
->
env
,
"PATH"
,
4
);
// and with PATH unset?
if
(
ret
==
-
1
)
return
(
NO_SUCH_FILE
);
tmp
=
get_var_value
(
xe
->
env
,
"PATH"
,
4
);
// and with PATH unset?
if
(
tmp
==
NULL
)
return
(
M_ERROR
);
...
...
src/ft_exit.c
View file @
8e08463c
...
...
@@ -81,7 +81,7 @@ int ft_error(int ret, t_xe *xe)
if
(
ret
>=
SQUOTE_MISSING
)
// temp
return
(
parsing_error
(
ret
-
9
,
xe
));
else
if
(
ret
>=
HOME_NOT_SET
)
return
(
exec_error
(
ret
-
7
,
xe
));
return
(
exec_error
(
ret
,
xe
));
else
if
(
ret
>
CLEAN_EXIT
)
err_output
(
ret
);
else
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment