bug-bash
[Top][All Lists]
Advanced

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

Re: bug: illegal function name?


From: Andrey Butirsky
Subject: Re: bug: illegal function name?
Date: Mon, 21 Jan 2019 00:03:01 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:65.0) Gecko/20100101 Thunderbird/65.0

Chet, the sample was run in normal, not POSIX, mode.
So it allows '1a' but disallows '1'. Pretty odd.

On 20.01.2019 23:55, Chet Ramey wrote:
> On 1/20/19 10:46 AM, Andrey Butirsky wrote:
>> `1' is not a valid identifier, still:
>> $ function 1 () { :; }
>> bash: `1': not a valid identifier
>>
>> So that is pretty messy..
> In posix mode, bash restricts function names to be valid shell identifiers,
> as the standard specifies.
>




reply via email to

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