summaryrefslogtreecommitdiffstats
path: root/Completion/Unix/Command
diff options
context:
space:
mode:
authordana <dana@dana.is>2026-06-29 19:50:58 -0500
committerdana <dana@dana.is>2026-06-29 19:53:47 -0500
commitd1020e63e13f85c7c0f57d43143c28cf759c20c9 (patch)
tree0294307cec258fa78c16c28fd95078d5eb800080 /Completion/Unix/Command
parentunposted: _numbers: fix compadd -q spec (diff)
downloadzsh-d1020e63e13f85c7c0f57d43143c28cf759c20c9.tar
zsh-d1020e63e13f85c7c0f57d43143c28cf759c20c9.tar.gz
zsh-d1020e63e13f85c7c0f57d43143c28cf759c20c9.tar.bz2
zsh-d1020e63e13f85c7c0f57d43143c28cf759c20c9.tar.lz
zsh-d1020e63e13f85c7c0f57d43143c28cf759c20c9.tar.xz
zsh-d1020e63e13f85c7c0f57d43143c28cf759c20c9.tar.zst
zsh-d1020e63e13f85c7c0f57d43143c28cf759c20c9.zip
54863 + others: completion: compadd -q -> -r
-q was not appropriate because a parameter name with no assignment makes no sense in this context. use -r instead also address some previous cases like this that i was responsible for
Diffstat (limited to 'Completion/Unix/Command')
-rw-r--r--Completion/Unix/Command/_configure2
-rw-r--r--Completion/Unix/Command/_ffmpeg8
-rw-r--r--Completion/Unix/Command/_git2
-rw-r--r--Completion/Unix/Command/_php2
-rw-r--r--Completion/Unix/Command/_postgresql4
5 files changed, 9 insertions, 9 deletions
diff --git a/Completion/Unix/Command/_configure b/Completion/Unix/Command/_configure
index 299684684..9911b78ec 100644
--- a/Completion/Unix/Command/_configure
+++ b/Completion/Unix/Command/_configure
@@ -21,7 +21,7 @@ if [[ ! -prefix - ]]; then
compset -P 1 '*='
_value && ret=0
else
- compset -S '=*' || suf=( -qS = )
+ compset -S '=*' || suf=( -r = -S = )
_wanted -x variables expl variable compadd $suf \
CC CFLAGS CPP CPPFLAGS CXX CXXFLAGS DEFS ERLCFLAGS FCFLAGS \
FFLAGS GOFLAGS LDFLAGS LIBS OBJCFLAGS OBJCXXFLAGS && ret=0
diff --git a/Completion/Unix/Command/_ffmpeg b/Completion/Unix/Command/_ffmpeg
index 2cdeb02fe..33eb9c5f6 100644
--- a/Completion/Unix/Command/_ffmpeg
+++ b/Completion/Unix/Command/_ffmpeg
@@ -113,7 +113,7 @@ _ffmpeg_stream_specs() {
p:"program ID"
m:"metadata tag"
disp:"dispositions"
- )' -qS: "${(@)ca_opts}" \
+ )' -r: -S: "${(@)ca_opts}" \
-- \
'(
u:"usable configuration"
@@ -138,7 +138,7 @@ _ffmpeg_metadata_specs() {
c:"per-chapter metadata"
p:"per-program metadata"
s:"per-stream metadata"
- )' -qS: \
+ )' -r: -S: \
-- \
'(
g:"global metadata"
@@ -749,7 +749,7 @@ _ffmpeg_kf_force_conds() {
scd_metadata:"when frame has metadata entry lavfi.scd.time"
)' \
-- \
- '( expr:"when evaluated expression is non-zero" )' -qS:
+ '( expr:"when evaluated expression is non-zero" )' -r: -S:
fi
}
@@ -833,7 +833,7 @@ _ffmpeg_help_topics() {
filter:"specified filter"
bsf:"specified bitstream filter"
protocol:"specified protocol"
- )' -qS=
+ )' -r= -S=
fi
}
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index 2b37ffa50..c4ed3c3e9 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -8500,7 +8500,7 @@ __git_format_placeholders() {
_alternative \
'formats:: _describe -t formats "built-in format" builtin_fmts' \
'user-formats:: _describe -t user-formats "user format" user_fmts' \
- 'custom-formats:: _describe -t custom-formats "custom format" custom_fmts -qS:' \
+ 'custom-formats:: _describe -t custom-formats "custom format" custom_fmts -r: -S:' \
&& return
# @todo: still unsupported: more complicated place-holders like %C() and
diff --git a/Completion/Unix/Command/_php b/Completion/Unix/Command/_php
index 9a8f519b1..3ed3e2705 100644
--- a/Completion/Unix/Command/_php
+++ b/Completion/Unix/Command/_php
@@ -155,7 +155,7 @@ _php() {
if compset -P 1 '*='; then
_default && ret=0
else
- compset -S '=*' || suf=( -qS '=' )
+ compset -S '=*' || suf=( -r= -S= )
_wanted directives expl 'INI directive' \
compadd "$suf[@]" -a directives && ret=0
fi
diff --git a/Completion/Unix/Command/_postgresql b/Completion/Unix/Command/_postgresql
index 595eb1cb4..aff245578 100644
--- a/Completion/Unix/Command/_postgresql
+++ b/Completion/Unix/Command/_postgresql
@@ -200,7 +200,7 @@ __pgsql_cfg_params_values() {
_message -e values 'PostgreSQL run-time configuration-parameter value'
else
compset -S '=*'
- __pgsql_cfg_params "$@" -qS=
+ __pgsql_cfg_params "$@" -r= -S=
fi
}
@@ -332,7 +332,7 @@ __pgsql_cfg_variables_values() {
_message -e values 'PostgreSQL special-variable value'
else
compset -S '=*'
- __pgsql_variables "$@" -qS=
+ __pgsql_variables "$@" -r= -S=
fi
}