File tree Expand file tree Collapse file tree 5 files changed +11
-8
lines changed Expand file tree Collapse file tree 5 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -2455,7 +2455,9 @@ _comp__included_ssh_config_files()
2455
2455
# -p PREFIX Use PREFIX
2456
2456
# -4 Filter IPv6 addresses from results
2457
2457
# -6 Filter IPv4 addresses from results
2458
- # @return Completions, starting with CWORD, are added to COMPREPLY[]
2458
+ # @var[out] COMPREPLY Completions, starting with CWORD, are added
2459
+ # @return True (0) if one or more completions are generated, or otherwise False
2460
+ # (1).
2459
2461
# @since 2.12
2460
2462
_comp_compgen_known_hosts ()
2461
2463
{
Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ _comp_cmd_chromium_browser()
17
17
case $cur in
18
18
* ://* )
19
19
local prefix=" ${cur%%://* } ://"
20
- _comp_compgen_known_hosts -- " ${cur#*:// } "
21
- COMPREPLY=(" ${COMPREPLY[@]/#/ $prefix } " )
20
+ _comp_compgen_known_hosts -- " ${cur#*:// } " &&
21
+ COMPREPLY=(" ${COMPREPLY[@]/#/ $prefix } " )
22
22
_comp_ltrim_colon_completions " $cur "
23
23
;;
24
24
* )
Original file line number Diff line number Diff line change @@ -24,8 +24,9 @@ _comp_cmd_cppcheck()
24
24
split=" set"
25
25
fi
26
26
_comp_compgen -- -W ' all warning style performance portability
27
- information unusedFunction missingInclude'
28
- [[ $split ]] && COMPREPLY=(${COMPREPLY[@]/#/ " $prev ," } )
27
+ information unusedFunction missingInclude' &&
28
+ [[ $split ]] &&
29
+ COMPREPLY=(${COMPREPLY[@]/#/ " $prev ," } )
29
30
return
30
31
;;
31
32
--error-exitcode)
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ _comp_cmd_cvs__entries()
5
5
local prefix=${cur%/* } / IFS=$' \n '
6
6
[[ -e ${prefix-} CVS/Entries ]] || prefix=" "
7
7
entries=($( cut -d/ -f2 -s " ${prefix-} CVS/Entries" 2> /dev/null) )
8
- if [[ $ entries ]] ; then
8
+ if (( ${ # entries[@]} )) ; then
9
9
entries=(" ${entries[@]/#/ ${prefix-} } " )
10
10
compopt -o filenames
11
11
fi
Original file line number Diff line number Diff line change @@ -35,8 +35,8 @@ _comp_cmd_smartctl__drivedb()
35
35
prefix=+
36
36
cur=" ${cur# +} "
37
37
fi
38
- _comp_compgen_filedir h
39
- [[ $prefix ]] && COMPREPLY=(" ${COMPREPLY[@]/#/ $prefix } " )
38
+ _comp_compgen_filedir h &&
39
+ [[ $prefix ]] && COMPREPLY=(" ${COMPREPLY[@]/#/ $prefix } " )
40
40
}
41
41
42
42
_comp_cmd_smartctl ()
You can’t perform that action at this time.
0 commit comments