54327: parameter names with dot are allowed except just after $

This commit is contained in:
Jun-ichi Takimoto
2026-04-13 09:44:50 +09:00
parent fd57b657b7
commit f7769ad632
2 changed files with 7 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
2026-04-13 Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>
* 54327: Completion/Zsh/Type/_parameters: names with dot are
allowed except just after $
2026-04-09 Mikael Magnusson <mikachu@gmail.com>
* unposted: Doc/Zsh/params.yo: missing space in list of cmdsubst

View File

@@ -14,8 +14,8 @@ local -a expl pattern=( -g \* ) normal described verbose faked fakes tmp
zstyle -t ":completion:${curcontext}:parameters" prefix-needed &&
[[ $PREFIX != [_.]* ]] &&
pfilt='[_.]*'
# names containing a dot are allowed only within ${ }
[[ $IPREFIX != \${* ]] && pfilt+='|*.*'
# names containing a dot are not allowed after '$'
[[ $IPREFIX = *\$ ]] && pfilt+='|*.*'
_description parameters expl parameter
zparseopts -D -K -E g:=pattern