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