|
| From: | Chet Ramey |
| Subject: | Re: function names which contain a 'dash' character |
| Date: | Wed, 07 May 2008 17:50:59 -0400 |
| User-agent: | Thunderbird 2.0.0.12 (Macintosh/20080213) |
Poor Yorick wrote:
ksh refuses to define functions which contain a dash ("-") in the name. The
Bash manual also defines 'name' as consisting solely of letters, numbers, and
underscores. So shouldn't bash refuse to create functions which contain a dash
in the name?
When in posix mode, bash does so refuse. In default (non-posix) mode, it is more liberal. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/
| [Prev in Thread] | Current Thread | [Next in Thread] |