$ - dash: 1: -: not found $ - () { echo hello; } dash: 2: Syntax error: Bad function name $ - dash: 2: -: not found $ alias -=true $ - $ - () { echo hello; } $ - hello $ -- To unsubscribe from this list: send the line "unsubscribe dash" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Function definitions that use a bad function name (such as "-" and "=")
are accepted if the function name already exists as an alias. For example:
- [BUG] Illegal function names are accepted after being used... Jan Verbeek
- Re: [BUG] Illegal function names are accepted after b... Eric Blake
- Re: [BUG] Illegal function names are accepted after b... Harald van Dijk
- Re: [BUG] Illegal function names are accepted aft... Eric Blake
- Re: [BUG] Illegal function names are accepted... Harald van Dijk
- Re: [BUG] Illegal function names are acce... Eric Blake
- Re: [BUG] Illegal function names are... Harald van Dijk
- Re: [BUG] Illegal function names... Eric Blake