File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -1959,7 +1959,7 @@ _known_hosts_real()
1959
1959
local OPTIND=1
1960
1960
while getopts " ac46F:p:" flag " $@ " ; do
1961
1961
case $flag in
1962
- a) aliases=' yes ' ;;
1962
+ a) aliases=set ;;
1963
1963
c) suffix=' :' ;;
1964
1964
F)
1965
1965
if [[ ! $OPTARG ]]; then
@@ -1969,8 +1969,8 @@ _known_hosts_real()
1969
1969
configfile=$OPTARG
1970
1970
;;
1971
1971
p) prefix=$OPTARG ;;
1972
- 4) ipv4=1 ;;
1973
- 6) ipv6=1 ;;
1972
+ 4) ipv4=set ;;
1973
+ 6) ipv6=set ;;
1974
1974
* )
1975
1975
echo " bash_completion: $FUNCNAME : usage error" >&2
1976
1976
return 1
Original file line number Diff line number Diff line change @@ -675,7 +675,7 @@ __tar_posix_prev_handle()
675
675
676
676
_posix_tar ()
677
677
{
678
- local long_opts short_opts basic_tar=" " \
678
+ local long_opts short_opts basic_tar=set \
679
679
long_arg_none=" " long_arg_opt long_arg_req=" " \
680
680
short_arg_none short_arg_opt short_arg_req \
681
681
tar_mode tar_mode_arg old_opt_progress=0 \
@@ -691,7 +691,6 @@ _posix_tar()
691
691
692
692
_comp_initialize -s -- " $@ " || return
693
693
694
- basic_tar=yes
695
694
tar_mode=none
696
695
697
696
# relatively compatible modes are {c,t,x}
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ _upgradepkg()
17
17
local nofiles=" " IFS=$' \n '
18
18
compopt -o filenames
19
19
COMPREPLY=($( compgen -P " $prev %" -f -X " !*.@(t[bgxl]z)" -- " $cur " ) )
20
- [[ ${COMPREPLY-} ]] || nofiles=1
20
+ [[ ${COMPREPLY-} ]] || nofiles=set
21
21
COMPREPLY+=($( compgen -P " $prev %" -S ' /' -d -- " $cur " ) )
22
22
[[ $nofiles ]] && compopt -o nospace
23
23
return
You can’t perform that action at this time.
0 commit comments