help-bash
[Top][All Lists]
Advanced

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

Re: Valid characters for function names


From: Chet Ramey
Subject: Re: Valid characters for function names
Date: Mon, 25 Nov 2019 14:27:43 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.2.2

On 11/25/19 12:02 PM, Eli Schwartz wrote:
On 11/25/19 9:41 AM, Reuti wrote:
Hi,

I got a script using foo++() as function name, and at first I was
confused of a different behavior between bash 4.2, 4.4 and 5.0. After
crawling some mailing lists whether this is allowed at all [...]

You can do some fun stuff with function names, which seems fair since
you can also do fun stuff with disk filenames in /usr/bin

https://lists.gnu.org/archive/html/bug-bash/2019-01/msg00171.html

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    address@hidden    http://tiswww.cwru.edu/~chet/



reply via email to

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