static char *set_tmp(char *cmdp, char *tmp, char **env, char **cmd) { tmp = NULL; check_tilde(env, cmd); if (cmdp) tmp = ft_strjoin(cmdp, "/"); else tmp = ft_strdup("./"); return (tmp); }
void stp_tilde(t_lx *lex, char **env) { t_lexer *browse_lx; if (lex == NULL) return ; browse_lx = lex->first; while (browse_lx) { if (browse_lx->type == CMD) check_tilde(browse_lx, env); browse_lx = browse_lx->next; } }