Skip to content

Commit 8508d1d

Browse files
committed
fix(curl): colon handling for IPv6 address completions
1 parent ccdf953 commit 8508d1d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bash_completion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1506,7 +1506,7 @@ _configured_interfaces()
15061506
}
15071507

15081508
# Local IP addresses.
1509-
# If producing IPv6 completions, use `-n :' to `_comp_initialize`.
1509+
# If producing IPv6 completions, `_comp_initialize` with `-n :`.
15101510
#
15111511
# -4: IPv4 addresses only (default)
15121512
# -6: IPv6 addresses only

completions/curl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
_comp_cmd_curl()
44
{
55
local cur prev words cword comp_args
6-
_comp_initialize -- "$@" || return
6+
_comp_initialize -n : -- "$@" || return
77

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

0 commit comments

Comments
 (0)