Re: Document what's allowed in function names

2011-05-25 Thread Chet Ramey
> 2011-05-24 17:23:20 -0400, Chet Ramey: > [...] > > > Why would you put any restriction on the allowed name of a function? > [...] > > Because Posix does, and because unset without -f has to enforce the variable > > name restrictions. (Though the language has been relaxed in the latest > > standa

Re: Document what's allowed in function names

2011-05-25 Thread Stephane CHAZELAS
2011-05-24 17:23:20 -0400, Chet Ramey: [...] > > Why would you put any restriction on the allowed name of a function? [...] > Because Posix does, and because unset without -f has to enforce the variable > name restrictions. (Though the language has been relaxed in the latest > standard.) [...] PO

Re: Document what's allowed in function names

2011-05-24 Thread Chet Ramey
> 2011-04-11, 09:51(-04), Chet Ramey: > >> Machine Type: i686-pc-linux-gnu > >> > >> Bash Version: 4.2 > >> Patch Level: 8 > >> Release Status: release > >> > >> Description: > >>man bash is currently lacking information on what is allowed for > >> function > >>names. It implies name wit

Re: Document what's allowed in function names

2011-05-24 Thread Stephane CHAZELAS
2011-04-11, 09:51(-04), Chet Ramey: >> Machine Type: i686-pc-linux-gnu >> >> Bash Version: 4.2 >> Patch Level: 8 >> Release Status: release >> >> Description: >> man bash is currently lacking information on what is allowed for >> function >> names. It implies name with name () compound

Re: Document what's allowed in function names

2011-04-11 Thread Linda Walsh
Chet Ramey wrote: It was a mistake to allow such characters in function names (`unset' doesn't work to unset them without forcing -f, for instance). We're stuck with them for backwards compatibility, but I don't have to encourage their use. --- Why doesn't bash create some sort of "deprecate

Re: Document what's allowed in function names

2011-04-11 Thread Chet Ramey
> Machine Type: i686-pc-linux-gnu > > Bash Version: 4.2 > Patch Level: 8 > Release Status: release > > Description: > man bash is currently lacking information on what is allowed for > function > names. It implies name with name () compound-command [redirection] and > at the st

Document what's allowed in function names

2011-04-09 Thread Petteri Räty
Configuration Information [Automatically generated, do not change]: Machine: i686 OS: linux-gnu Compiler: i686-pc-linux-gnu-gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i686' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/loc