File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change 1
1
# fio(1) completion -*- shell-script -*-
2
2
3
- _comp_cmd_fio__engines ()
3
+ _comp_cmd_fio__compgen_engines ()
4
4
{
5
- local IFS=$' \n '
6
- REPLY=($( " $1 " --enghelp 2> /dev/null | command sed -ne ' /^[[:space:]]/p' ) )
7
- return $(( ! ${# REPLY[*]} ))
5
+ _comp_compgen_split -l -- " $( " $1 " --enghelp 2> /dev/null | command sed -ne ' /^[[:space:]]/p' ) )"
8
6
}
9
7
10
8
_comp_cmd_fio ()
@@ -40,8 +38,7 @@ _comp_cmd_fio()
40
38
return
41
39
;;
42
40
--enghelp)
43
- _comp_cmd_fio__engines " $1 " &&
44
- _comp_compgen -- -W ' "${REPLY[@]}"'
41
+ _comp_cmd_fio__compgen_engines " $1 "
45
42
return
46
43
;;
47
44
--eta)
@@ -81,8 +78,7 @@ _comp_cmd_fio()
81
78
return
82
79
;;
83
80
--ioengine)
84
- _comp_cmd_fio__engines " $1 " &&
85
- _comp_compgen -- -W ' "${REPLY[@]}"'
81
+ _comp_cmd_fio__compgen_engines " $1 "
86
82
return
87
83
;;
88
84
--exec_postrun | --exec_prerun)
You can’t perform that action at this time.
0 commit comments