Variable inside shortcode or shortcode inside shortcode

apparently I found the solution (thanks to amatorpl), if anyone needs it:

function show_history() {

$user = wp_get_current_user();
$user_email = $user->user_email;

$show_history = '[shortcode_name search="'.$user_email.'" show="url, color, size"]';
$history =  do_shortcode($show_history);

return $history;
}

add_shortcode('show_history', 'show_history'); 

Thanks for the try