bug-bash
[Top][All Lists]
Advanced

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

Re: Officially document that we allow other characters in function names


From: konsolebox
Subject: Re: Officially document that we allow other characters in function names
Date: Tue, 28 Jun 2016 01:58:01 +0800

On Tue, Jun 28, 2016 at 1:31 AM, Pierre Gaston <address@hidden> wrote:
>
>
> On Mon, Jun 27, 2016 at 8:15 PM, Pierre Gaston <address@hidden>
> wrote:
>>
>>
>>
>> On Mon, Jun 27, 2016 at 7:17 PM, konsolebox <address@hidden> wrote:
>>>
>>> On Mon, Jun 27, 2016 at 10:41 PM, Chet Ramey <address@hidden> wrote:
>>> > On 6/27/16 3:11 AM, konsolebox wrote:
>>> >> Hi, I think it's time that we officially specify in the manual of Bash
>>> >> that we allow other characters besides [[:alnum:]_] when declaring
>>> >> function names in non-POSIX mode.
>>> >
>>> > Is there some new reason to do this now?
>>> >
>>>
>>> Not really, but sometimes I encounter people saying such practice of
>>> using characters besides those allowed by POSIX is wrong simply
>>> because it is undocumented.  I just thought about making a suggestion
>>> today, and hope that it gets updated before 4.4.
>>>
>>> --
>>> konsolebox
>>>
>> Chet is one of these people ;)
>> https://lists.gnu.org/archive/html/bug-bash/2011-04/msg00040.html
>
>
> Maybe it's possible to explicitly allow, if not all, some characters  for
> instance one of the rare bash style guide out there:
>
> https://google.github.io/styleguide/shell.xml#Function_Names
>
> suggest using :: for separating library names

I considered :: as well back then, but it looks messy.  I prefer a dot.

-- 
konsolebox



reply via email to

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