[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mkdir owner:group option
From: |
Jim Meyering |
Subject: |
Re: mkdir owner:group option |
Date: |
Tue, 10 Mar 2009 11:11:47 +0100 |
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" "$@"; }
Re: mkdir owner:group option, Jim Meyering, 2009/03/10