#!/bin/bash eunpack() { if [ $# -ne 1 ]; then echo "Needs one argument: ebuild" return 1 fi eclean $1 sudo ebuild $1 unpack } eunpack $@