summaryrefslogtreecommitdiffstats
path: root/completions/perl
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--completions/perl2
1 files changed, 1 insertions, 1 deletions
diff --git a/completions/perl b/completions/perl
index 9b82777..ee852f1 100644
--- a/completions/perl
+++ b/completions/perl
@@ -107,7 +107,7 @@ _comp_cmd_perldoc()
# Prefer `perl` in the same dir in utility functions
local pathcmd
- pathcmd=$(type -P "$1") && local PATH=${pathcmd%/*}:$PATH
+ pathcmd=$(type -P -- "$1") && local PATH=${pathcmd%/*}:$PATH
case $prev in
-*[hVnoMwL])