Mike Frysinger wrote:
..
> mkudir() { (u=$1; g=$2; shift 2; install -d -o"$u" -g"$g" "$@"); }
Good idea.
I prefer to use "local", and thus to avoid forking a subshell.
Also, you can drop the semicolon between the assignments:
mkudir() { local u=$1 g=$2; shift 2; install -d -o"$u" -g"$g" "$@"; }