File tree 9 files changed +0
-18
lines changed
9 files changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -29,10 +29,7 @@ _comp_cmd_7z()
29
29
COMPREPLY=($( compgen -P" $opt " -W ' @ ! r@ r-@ r0@ r! r-! r0!' \
30
30
-- " $cur " ) )
31
31
elif [[ $cur == ? (r@ (-| 0| ))@* ]]; then
32
- local IFS=$' \t\n ' reset=$( shopt -po noglob)
33
- set -o noglob
34
32
_comp_compgen -c " ${cur#*@ } " -- -P" ${opt}${cur%%@* } @" -f
35
- $reset
36
33
compopt -o filenames
37
34
fi
38
35
return
@@ -46,13 +43,8 @@ _comp_cmd_7z()
46
43
return
47
44
;;
48
45
-o* | -w?* )
49
- local reset=$( shopt -po noglob)
50
- set -o noglob
51
46
compopt -o filenames
52
- local IFS=$' \n '
53
47
_comp_compgen -c " ${cur: 2} " -- -d -P" ${cur: 0: 2} " -S/
54
- _comp_unlocal IFS
55
- $reset
56
48
compopt -o nospace
57
49
return
58
50
;;
Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ _comp_cmd_su()
19
19
return
20
20
;;
21
21
-c | --command | --session-command)
22
- local IFS=$' \n '
23
22
compopt -o filenames
24
23
_comp_compgen -- -d -c
25
24
return
Original file line number Diff line number Diff line change @@ -27,9 +27,7 @@ _comp_cmd_umount__reply_compgen_array()
27
27
ecur=${ecur// \' / \\\' }
28
28
29
29
# Actually generate completions.
30
- local IFS=$' \n '
31
30
_comp_compgen -c " ${ecur} " -- -W " $wlist "
32
- _comp_unlocal IFS
33
31
}
34
32
35
33
# Unescape strings in the linux fstab(5) format (with octal escapes).
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ _comp_cmd_help()
10
10
return
11
11
fi
12
12
13
- local IFS=$' \t\n '
14
13
_comp_compgen -- -A helptopic
15
14
(( ${# COMPREPLY[*]} != 1 )) || printf -v " COMPREPLY[0]" %q " $COMPREPLY "
16
15
} &&
Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ _comp_cmd_hunspell()
15
15
if (( ${# dicts[@]} )) ; then
16
16
dicts=(" ${dicts[@]##*/ } " )
17
17
dicts=(" ${dicts[@]% .dic} " )
18
- local IFS=$' \n '
19
18
_comp_compgen -- -W ' "${dicts[@]}"'
20
19
fi
21
20
return
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ _comp_xfunc_mysql_character_sets()
7
7
charsets+=(utf8)
8
8
charsets=(" ${charsets[@]##*/ } " )
9
9
charsets=(" ${charsets[@]% .xml} " )
10
- local IFS=$' \n '
11
10
_comp_compgen -a -- -W ' "${charsets[@]}"' -X ' '
12
11
}
13
12
Original file line number Diff line number Diff line change @@ -33,7 +33,6 @@ _comp_cmd_perl()
33
33
return
34
34
;;
35
35
-* [Ix])
36
- local IFS=$' \n '
37
36
compopt -o filenames
38
37
_comp_compgen -- -d " $optPrefix " $optSuffix
39
38
return
@@ -78,7 +77,6 @@ _comp_cmd_perl()
78
77
# Likewise, `-I' also accepts a space between option and argument
79
78
# and it takes a directory as value.
80
79
elif [[ $prev == -I ]]; then
81
- local IFS=$' \n '
82
80
compopt -o filenames
83
81
# shellcheck disable=SC2086
84
82
_comp_compgen -- -d ${optPrefix-} ${optSuffix-}
Original file line number Diff line number Diff line change @@ -72,7 +72,6 @@ _vpnc()
72
72
if (( ${# configs[@]} )) ; then
73
73
configs=(" ${configs[@]##*/ } " )
74
74
configs=(" ${configs[@]% .conf} " )
75
- local IFS=$' \n '
76
75
compopt -o filenames
77
76
_comp_compgen -- -W ' "${configs[@]}"'
78
77
fi
Original file line number Diff line number Diff line change @@ -59,7 +59,6 @@ _comp_cmd_xdg_mime()
59
59
_comp_expand_glob desktops ' /usr/share/applications/*.desktop'
60
60
if (( ${# desktops[@]} )) ; then
61
61
desktops=(" ${desktops[@]##*/ } " )
62
- local IFS=$' \n '
63
62
_comp_compgen -- -W ' "${desktops[@]}"'
64
63
fi
65
64
else
You can’t perform that action at this time.
0 commit comments