Skip to content

Commit 1cf6fa6

Browse files
akinomyogascop
authored andcommitted
fix(sudo): fix option names in the command-offset search
1 parent 7fc7f13 commit 1cf6fa6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

completions/sudo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ _sudo()
2323
break
2424
fi
2525
# shellcheck disable=SC2254
26-
[[ ${words[i]} == -@(user|other-user|group|close-from|prompt|${noargopts}[uUgCp]) ]] &&
26+
[[ ${words[i]} == @(--@(user|other-user|group|close-from|prompt)|-${noargopts}[uUgCp]) ]] &&
2727
((i++))
2828
done
2929

0 commit comments

Comments
 (0)