Using extended Unicode characters is (no-doubt) useful for many users.
Simpler shells (ash (busybox), dash) and ksh do fail with:
tést() { echo 34; }
tést
But bash, mksh, lksh, and zsh seem to allow it.
I am aware that POSIX valid function names use this definition of Names. That means this regex:
[a-zA-Z_][a-zA-Z0-9_]*
However, in the first link it is also said:
An implementation may allow other characters in a function name as an extension.
The questions are:
- Is this accepted and documented?
- Where?
- For which shells (if any)?
Related questions:
Its possible use special characters in a shell function name?
I am not interested in using meta-characters (>) in function names.
Upstart and bash function names containing “-”
I do not believe that an operator (subtraction "-") should be part of a name.
alias
to be a tad more lenient. and so you can write the function with a some proper, buttoned-down name, and then just define a more stylishly named alias to call the function. indash
there is also some stuff you can do with$PATH
and%func
. – mikeserv Nov 25 '15 at 08:20