Skip to content

Commit

Permalink
Fix subcommand lookup when using a non-english locale (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
kke authored Sep 6, 2018
1 parent 31a3304 commit 505f3d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion share/chpharos/chpharos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,7 @@ chpharos() {
subcommand="_chpharos_subcommand_$1"
subcommand="${subcommand//_--/_longdash_}"
subcommand="${subcommand//-/_}"
if type "${subcommand}" | grep -q 'function'; then
if declare -Ff "${subcommand}" &> /dev/null; then
shift
"${subcommand}" "$@"
else
Expand Down

0 comments on commit 505f3d7

Please sign in to comment.