예제 #1
0
파일: exe_cmd.c 프로젝트: adpdsr/minishell
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);
}
예제 #2
0
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;
	}
}