mirror of
https://github.com/Savapitech/42sh.git
synced 2026-03-18 21:50:35 +01:00
[FIX] requested changes for the PR
This commit is contained in:
@@ -6,12 +6,7 @@
|
||||
*/
|
||||
|
||||
#include "ast.h"
|
||||
#include "common.h"
|
||||
#include "debug.h"
|
||||
#include "env.h"
|
||||
#include "history.h"
|
||||
#include "shell.h"
|
||||
#include "u_str.h"
|
||||
|
||||
char *handle_var_case(ast_t *node, env_t *env, size_t *i)
|
||||
{
|
||||
@@ -19,8 +14,7 @@ char *handle_var_case(ast_t *node, env_t *env, size_t *i)
|
||||
*i += 1;
|
||||
node->vector.tokens[*i].str[node->vector.tokens[*i].sz] = '\0';
|
||||
return get_env_value(env, node->vector.tokens[*i].str);
|
||||
} else {
|
||||
node->vector.tokens[*i].str[node->vector.tokens[*i].sz] = '\0';
|
||||
return node->vector.tokens[*i].str;
|
||||
}
|
||||
}
|
||||
node->vector.tokens[*i].str[node->vector.tokens[*i].sz] = '\0';
|
||||
return node->vector.tokens[*i].str;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user