7 ms·q() { local output output=$("$@" 2>&1) local ec=$? echo "$output" | tail -5 return $ec } There :)by canto 7mo agoq() { local output output=$("$@" 2>&1) local ec=$? echo "$output" | tail -5 return $ec } There :)