File tree Expand file tree Collapse file tree 1 file changed +36
-36
lines changed Expand file tree Collapse file tree 1 file changed +36
-36
lines changed Original file line number Diff line number Diff line change @@ -28,44 +28,44 @@ _perl()
28
28
optSuffix=-S/
29
29
prefix=$prev
30
30
31
- case $prev in
32
- -* [DeEiFl])
33
- return
34
- ;;
35
- -* [Ix])
36
- local IFS=$' \n '
37
- compopt -o filenames
38
- COMPREPLY=( $( compgen -d $optPrefix $optSuffix -- " $cur " ) )
39
- return
40
- ;;
41
- -* [mM])
42
- temp=" ${cur# -} "
43
- prefix+=" ${cur% $temp } "
44
- cur=" $temp "
45
- _perl_helper modules $1
46
- return
47
- ;;
48
- -* V)
49
- if [[ $cur == :* ]]; then
50
- temp=" ${cur## +(: )} "
51
- prefix+=" ${cur% $temp } "
31
+ case $prev in
32
+ -* [DeEiFl])
33
+ return
34
+ ;;
35
+ -* [Ix])
52
36
local IFS=$' \n '
53
- COMPREPLY=( $( compgen -P " $prefix " -W \
54
- ' $($1 -MConfig -e "print join \"\\n\",
55
- keys %Config::Config" 2>/dev/null)' -- " $temp " ) )
56
- __ltrim_colon_completions " $prefix$temp "
57
- fi
58
- return
59
- ;;
60
- -* d|-* dt)
61
- if [[ $cur == :* ]]; then
62
- temp=" ${cur#: } "
63
- prefix=" $prefix ${cur% $temp } "
64
- cur=" Devel::$temp "
37
+ compopt -o filenames
38
+ COMPREPLY=( $( compgen -d $optPrefix $optSuffix -- " $cur " ) )
39
+ return
40
+ ;;
41
+ -* [mM])
42
+ temp=" ${cur# -} "
43
+ prefix+=" ${cur% $temp } "
44
+ cur=" $temp "
65
45
_perl_helper modules $1
66
- fi
67
- ;;
68
- esac
46
+ return
47
+ ;;
48
+ -* V)
49
+ if [[ $cur == :* ]]; then
50
+ temp=" ${cur## +(: )} "
51
+ prefix+=" ${cur% $temp } "
52
+ local IFS=$' \n '
53
+ COMPREPLY=( $( compgen -P " $prefix " -W \
54
+ ' $($1 -MConfig -e "print join \"\\n\",
55
+ keys %Config::Config" 2>/dev/null)' -- " $temp " ) )
56
+ __ltrim_colon_completions " $prefix$temp "
57
+ fi
58
+ return
59
+ ;;
60
+ -* d|-* dt)
61
+ if [[ $cur == :* ]]; then
62
+ temp=" ${cur#: } "
63
+ prefix=" $prefix ${cur% $temp } "
64
+ cur=" Devel::$temp "
65
+ _perl_helper modules $1
66
+ fi
67
+ ;;
68
+ esac
69
69
70
70
# Unlike other perl options, having a space between the `-e' and
71
71
# `-E' options and their arguments, e.g. `perl -e "exit 2"', is
You can’t perform that action at this time.
0 commit comments