File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ _comp_make__truncate_non_unique_paths()
111
111
for target in " ${COMPREPLY[@]} " ; do
112
112
local path=${target%/ }
113
113
while [[ ! ${paths[$path]+set} ]] &&
114
- paths[$path ]=1 &&
114
+ paths[$path ]=set &&
115
115
[[ $path == " $prefix " * /* ]]; do
116
116
path=${path%/* }
117
117
nchild[$path ]=$(( ${nchild[$path]-0} + 1 ))
Original file line number Diff line number Diff line change @@ -64,8 +64,8 @@ _comp_cmd_mutt__get_conffiles()
64
64
# @var[ref] visited Dictionary of config files already visited
65
65
_comp_cmd_mutt__get_conffiles__visit ()
66
66
{
67
- [[ -f $1 && ${visited[$1]-} != yes ]] || return 0
68
- visited[$1 ]=yes
67
+ [[ -f $1 && ${visited[$1]-} != set ]] || return 0
68
+ visited[$1 ]=set
69
69
conffiles+=(" $1 " )
70
70
71
71
local -a newconffiles=($( command sed -n ' s|^source[[:space:]]\{1,\}\([^[:space:]]\{1,\}\).*$|\1|p' " $1 " ) )
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ _strace()
40
40
while read -r define syscall rest; do
41
41
[[ $define == " #define" &&
42
42
$syscall =~ ^__NR_(.+) ]] &&
43
- syscalls[${BASH_REMATCH[1]} ]=1
43
+ syscalls[${BASH_REMATCH[1]} ]=set
44
44
done 2> /dev/null < /usr/include/asm/unistd.h
45
45
if (( ${# syscalls[@]} == 0 )) ; then
46
46
local unistd arch=$( command uname -m)
@@ -52,7 +52,7 @@ _strace()
52
52
while read -r define syscall rest; do
53
53
[[ $define == " #define" &&
54
54
$syscall =~ ^__NR_(.+) ]] &&
55
- syscalls[${BASH_REMATCH[1]} ]=1
55
+ syscalls[${BASH_REMATCH[1]} ]=set
56
56
done 2> /dev/null < $unistd
57
57
fi
58
58
You can’t perform that action at this time.
0 commit comments