Skip to content

Commit 44c4327

Browse files
committed
fix: $split && return => [[ $was_split ]] && return for custom IFS
1 parent 0792488 commit 44c4327

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

159 files changed

+347
-347
lines changed

bash_completion

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2372,7 +2372,7 @@ _complete_as_root()
23722372

23732373
_longopt()
23742374
{
2375-
local cur prev words cword split comp_args
2375+
local cur prev words cword was_split comp_args
23762376
_comp_initialize -s -- "$@" || return
23772377

23782378
case "${prev,,}" in
@@ -2403,7 +2403,7 @@ _longopt()
24032403
;;
24042404
esac
24052405

2406-
$split && return
2406+
[[ $was_split ]] && return
24072407

24082408
if [[ $cur == -* ]]; then
24092409
_comp_compgen COMPREPLY -W "$(LC_ALL=C $1 --help 2>&1 |

completions/2to3

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
_2to3()
44
{
5-
local cur prev words cword split comp_args
5+
local cur prev words cword was_split comp_args
66
_comp_initialize -s -- "$@" || return
77

88
case $prev in
@@ -24,7 +24,7 @@ _2to3()
2424
;;
2525
esac
2626

27-
$split && return
27+
[[ $was_split ]] && return
2828

2929
if [[ $cur == -* ]]; then
3030
COMPREPLY=($(compgen -W '$(_parse_help "$1")' -- "$cur"))

completions/_mock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
_comp_cmd_mock()
77
{
8-
local cur prev words cword split comp_args
8+
local cur prev words cword was_split comp_args
99
_comp_initialize -s -- "$@" || return
1010

1111
local plugins='tmpfs root_cache yum_cache bind_mount ccache'
@@ -55,7 +55,7 @@ _comp_cmd_mock()
5555
;;
5656
esac
5757

58-
$split && return
58+
[[ $was_split ]] && return
5959

6060
if [[ $cur == -* ]]; then
6161
COMPREPLY=($(compgen -W '$(_parse_help "$1")' -- "$cur"))

completions/_repomanage

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55

66
_comp_cmd_repomanage()
77
{
8-
local cur prev words cword split comp_args
8+
local cur prev words cword was_split comp_args
99
_comp_initialize -s -- "$@" || return
1010

1111
[[ $prev == -@([hk]|-help|-keep) ]] && return
1212

13-
$split && return
13+
[[ $was_split ]] && return
1414

1515
if [[ $cur == -* ]]; then
1616
COMPREPLY=($(compgen -W '$(_parse_help "$1")' -- "$cur"))

completions/_rtcwake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
_comp_cmd_rtcwake()
77
{
8-
local cur prev words cword split comp_args
8+
local cur prev words cword was_split comp_args
99
_comp_initialize -s -- "$@" || return
1010

1111
case "$prev" in
@@ -24,7 +24,7 @@ _comp_cmd_rtcwake()
2424
;;
2525
esac
2626

27-
$split && return
27+
[[ $was_split ]] && return
2828

2929
COMPREPLY=($(compgen -W '$(_parse_help "$1")' -- "$cur"))
3030
} &&

completions/_su

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ fi
1010

1111
_comp_cmd_su()
1212
{ # linux-specific completion
13-
local cur prev words cword split comp_args
13+
local cur prev words cword was_split comp_args
1414
_comp_initialize -s -- "$@" || return
1515

1616
case "$prev" in
@@ -26,7 +26,7 @@ _comp_cmd_su()
2626
;;
2727
esac
2828

29-
$split && return
29+
[[ $was_split ]] && return
3030

3131
if [[ $cur == -* ]]; then
3232
COMPREPLY=($(compgen -W '$(_parse_help "$1")' -- "$cur"))

completions/_udevadm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
_comp_cmd_udevadm()
77
{
8-
local cur prev words cword split comp_args
8+
local cur prev words cword was_split comp_args
99
_comp_initialize -s -- "$@" || return
1010

1111
local i udevcmd has_udevcmd=""
@@ -52,7 +52,7 @@ _comp_cmd_udevadm()
5252
;;
5353
esac
5454

55-
$split && return
55+
[[ $was_split ]] && return
5656

5757
if [[ ! $has_udevcmd ]]; then
5858
case $cur in

completions/_yum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ _yum_plugins()
3939

4040
_comp_cmd_yum()
4141
{
42-
local cur prev words cword split comp_args
42+
local cur prev words cword was_split comp_args
4343
_comp_initialize -s -- "$@" || return
4444

4545
local special="" i
@@ -136,7 +136,7 @@ _comp_cmd_yum()
136136
;;
137137
esac
138138

139-
$split && return
139+
[[ $was_split ]] && return
140140

141141
if [[ $cur == -* ]]; then
142142
COMPREPLY=($(compgen -W '$(_parse_help "$1")' -- "$cur"))

completions/a2x

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
_a2x()
44
{
5-
local cur prev words cword split comp_args
5+
local cur prev words cword was_split comp_args
66
_comp_initialize -s -- "$@" || return
77

88
local noargopts='!(-*|*[aDd]*)'
@@ -26,7 +26,7 @@ _a2x()
2626
;;
2727
esac
2828

29-
$split && return
29+
[[ $was_split ]] && return
3030

3131
if [[ $cur == -* ]]; then
3232
COMPREPLY=($(compgen -W '$(_parse_help "$1" --help)' -- "$cur"))

completions/aclocal

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
_aclocal()
44
{
5-
local cur prev words cword split comp_args
5+
local cur prev words cword was_split comp_args
66
_comp_initialize -s -- "$@" || return
77

88
case "$prev" in
@@ -25,7 +25,7 @@ _aclocal()
2525
;;
2626
esac
2727

28-
$split && return
28+
[[ $was_split ]] && return
2929

3030
COMPREPLY=($(compgen -W '$(_parse_help "$1")' -- "$cur"))
3131
[[ ${COMPREPLY-} == *= ]] && compopt -o nospace

0 commit comments

Comments
 (0)