mirror of
https://git.code.sf.net/p/zsh/code
synced 2026-04-18 06:53:35 -04:00
54327: parameter names with dot are allowed except just after $
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user