[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bug: illegal function name?
From: |
Chet Ramey |
Subject: |
Re: bug: illegal function name? |
Date: |
Sun, 20 Jan 2019 15:54:24 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.3.3 |
On 1/20/19 10:26 AM, Andrey Butirsky wrote:
> Andreas, I know it will work with the '-f' flag.
> But for others function names, the '-f' unset flag is not required.
> Moreover, it seem confronts with Open Group Base Specification.
When posix mode is enabled, bash restricts function names to valid shell
identifiers. In default mode, it allows virtually any character except
NUL. (So you can create a function whose name contains a slash, but you'll
never be able to call it.)
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/
- Re: bug: illegal function name?, (continued)
- Re: bug: illegal function name?, Chet Ramey, 2019/01/20
- Re: bug: illegal function name?, Andrey Butirsky, 2019/01/20
- Re: bug: illegal function name?, Robert Elz, 2019/01/20
- Re: bug: illegal function name?, Eduardo A . Bustamante López, 2019/01/20
- Re: bug: illegal function name?, pepa65, 2019/01/21
- Re: bug: illegal function name?, Chet Ramey, 2019/01/21
- Re: bug: illegal function name?, Robert Elz, 2019/01/20
- Re: bug: illegal function name?, Andrey Butirsky, 2019/01/21
- Re: bug: illegal function name?,
Chet Ramey <=