[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mkdir owner:group option

From: Pádraig Brady
Subject: Re: mkdir owner:group option
Date: Tue, 10 Mar 2009 10:47:11 +0000
User-agent: Thunderbird (X11/20071008)

Mike Frysinger wrote:
> On Tuesday 10 March 2009 06:11:47 Jim Meyering wrote:
>> 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.
> in general, i agree.  however, some people like to omit "local" support from 
> their shell (since it isnt in POSIX), or do really stupid s**t like requiring 
> quoting on the RHS (dash comes to mind).

Testing with an old dash (0.5.4-1ubuntu3) shows that it
handles local, and does not need quoting on RHS.

"local" is not POSIX compatible though, and ksh doesn't like it at least.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]