Skip to content

Commit

Permalink
fix(curl): colon handling for IPv6 address completions
Browse files Browse the repository at this point in the history
  • Loading branch information
scop committed May 27, 2023
1 parent ccdf953 commit 8508d1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bash_completion
Expand Up @@ -1506,7 +1506,7 @@ _configured_interfaces()
}

# Local IP addresses.
# If producing IPv6 completions, use `-n :' to `_comp_initialize`.
# If producing IPv6 completions, `_comp_initialize` with `-n :`.
#
# -4: IPv4 addresses only (default)
# -6: IPv6 addresses only
Expand Down
2 changes: 1 addition & 1 deletion completions/curl
Expand Up @@ -3,7 +3,7 @@
_comp_cmd_curl()
{
local cur prev words cword comp_args
_comp_initialize -- "$@" || return
_comp_initialize -n : -- "$@" || return

local noargopts='!(-*|*[KbcDoTCFmQreYytzuAwEdHPxX]*)'
# shellcheck disable=SC2254
Expand Down

0 comments on commit 8508d1d

Please sign in to comment.