reopen 619725 0.5.6.1-1~exp1
retitle 619725 dash: local should not be a special builtin
tags 619725 - patch
quit

Hi,

Jilles Tjoelker wrote:

>> [false || local() { ...; } is a syntax error]
>
> Although I don't think special builtins shall be valid function names, I
> think there is still a bug in dash here: 'local' should not be a special
> builtin.

Thanks.

I'm torn about what to do in the long term.  Should the list of
special builtins stay the same forever?  Why should it be harder to
add a new special builtin than a new keyword?

But in the short term, the right thing to do is clear.  POSIX does not
give any latitude for inventing new special builtins, and there is
good reason for that, as you mentioned.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to