From 08d883b792e5ed9c07e1cab964e50db7471bec5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Gu=C3=A9len?= Date: Mon, 24 Mar 2025 10:53:02 +0100 Subject: [PATCH] Expansion: fixed one documenting comment. --- src/subst/variable_subst.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/subst/variable_subst.c b/src/subst/variable_subst.c index 4d32dda..9415519 100644 --- a/src/subst/variable_subst.c +++ b/src/subst/variable_subst.c @@ -6,7 +6,7 @@ /* By: khais +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/03/19 17:28/29 by khais #+# #+# */ -/* Updated: 2025/03/24 10:47:12 by jguelen ### ########.fr */ +/* Updated: 2025/03/24 10:52:10 by jguelen ### ########.fr */ /* */ /* ************************************************************************** */ @@ -115,7 +115,8 @@ static char *calculate_replacement(t_worddesc *word, t_minishell *app, size_t i, ** @Param word should NOT be NULL. ** Replace the word field of the t_worddesc pointer word with a new string ** corresponding to the replacement of the '$' followed by a valid bash -** identifier with the corresponding value if present in env or nothing if +** identifier with the corresponding value if present in env, the return value +** of the last foreground executed pipeline in the case of $? or nothing if ** the corresponding identifier does not have an entry in env. ** Additionnally if the first character following is a digit both the '$' ** and digit are removed even though we do not deal with those type of bash