Chpharos failed to find subcommands when using a shells with non-english locale settings.
This is because something like type "_chpharos_subcommand_login" responds with something like "on funktio" or "ist eine funktion" and grepping for is a function fails to find a match.
Replaced with declare -FF "_chpharos_subcommand_login" &> /dev/null which seems to work both in bash and zsh.
Fixes #29
Chpharos failed to find subcommands when using a shells with non-english locale settings.
This is because something like
type "_chpharos_subcommand_login"
responds with something like "on funktio" or "ist eine funktion" and grepping foris a function
fails to find a match.Replaced with
declare -FF "_chpharos_subcommand_login" &> /dev/null
which seems to work both in bash and zsh.