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

Re: dash as default /bin/sh and bashisms-free archive RGs



On Sun, Apr 12, 2009 at 09:35:37PM +0200, Marco d'Itri wrote:
> 
> > * Bashisms-free archive
> This is useless. You are basically proposing to remove every usage of
> "local" and a few other directives for no good reason but at a huge cost.
> 

Policy specifically states that use of "local" is permitted [0]:

    * local to create a scoped variable must be supported, including
      listing multiple variables in a single local command and assigning
      a value to a variable at the same time as localizing it. local may
      or may not preserve the variable value from an outer scope if no
      assignment is present. Uses such as:

           fname () {
               local a b c=delta d
               # ... use a, b, c, d ...
           }

      must be supported and must set the value of c to delta.


Regards,

-Roberto

[0] http://www.debian.org/doc/debian-policy/ch-files.html#s-scripts

-- 
Roberto C. Sánchez
http://people.connexer.com/~roberto
http://www.connexer.com

Attachment: signature.asc
Description: Digital signature


Reply to: