mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-13 23:31:08 +02:00
53660: Clarify namespaces starting with a .
This commit is contained in:
parent
87c055fb4d
commit
bfb8ec65a6
3 changed files with 11 additions and 5 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2025-05-22 Mikael Magnusson <mikachu@gmail.com>
|
||||||
|
|
||||||
|
* 53660: Doc/Zsh/expn.yo, Doc/Zsh/params.yo: Clarify namespaces
|
||||||
|
starting with a .
|
||||||
|
|
||||||
2025-05-19 dana <dana@dana.is>
|
2025-05-19 dana <dana@dana.is>
|
||||||
|
|
||||||
* 53636: Doc/Zsh/params.yo: clarify valid parameter names
|
* 53636: Doc/Zsh/params.yo: clarify valid parameter names
|
||||||
|
|
|
@ -616,9 +616,7 @@ the format `tt(.)var(identifier)tt(.)' This currently has no special
|
||||||
meaning to the shell, but provides a convenient means of grouping
|
meaning to the shell, but provides a convenient means of grouping
|
||||||
related parameters. Expansions using a namespace em(must) include
|
related parameters. Expansions using a namespace em(must) include
|
||||||
braces (tt({) and tt(})) as shown in the descriptions below, and
|
braces (tt({) and tt(})) as shown in the descriptions below, and
|
||||||
only one namespace prefix is allowed. Note that, for support of
|
only one namespace prefix is allowed.
|
||||||
possible future features, the first `tt(.)' is optional, but omitting
|
|
||||||
it is discouraged.
|
|
||||||
|
|
||||||
In the expansions discussed below that require a pattern, the form of
|
In the expansions discussed below that require a pattern, the form of
|
||||||
the pattern is the same as that used for filename generation;
|
the pattern is the same as that used for filename generation;
|
||||||
|
|
|
@ -67,8 +67,11 @@ with a `tt(.)' prefix are not listed by the `tt(set)' builtin, nor
|
||||||
shown by the `tt(typeset)' builtin unless explicitly named or the
|
shown by the `tt(typeset)' builtin unless explicitly named or the
|
||||||
`tt(-m)' option is used. They provide a convenient way to group
|
`tt(-m)' option is used. They provide a convenient way to group
|
||||||
related variables. Note that, for support of possible future features,
|
related variables. Note that, for support of possible future features,
|
||||||
the first `tt(.)' is optional, but omitting it is discouraged. Unlike
|
the first `tt(.)' is optional, but omitting it is discouraged. Note also
|
||||||
ksh, a namespace need not be declared before it is referenced.
|
that a name starting with a `tt(.)' does not refer to the same parameter
|
||||||
|
as one that does not, eg, `tt(.foo.bar)' and `tt(foo.bar)' are distinct
|
||||||
|
parameters. Unlike ksh, a namespace need not be declared before it
|
||||||
|
is referenced.
|
||||||
|
|
||||||
In scalar assignment, var(value) is expanded as a single string, in
|
In scalar assignment, var(value) is expanded as a single string, in
|
||||||
which the elements of arrays are joined together; filename expansion is
|
which the elements of arrays are joined together; filename expansion is
|
||||||
|
|
Loading…
Reference in a new issue