mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-04 22:51:42 +02:00
53337: allow nameref -p
This commit is contained in:
parent
e3f7f2fc85
commit
20990fa7e4
3 changed files with 4 additions and 2 deletions
|
@ -1,5 +1,7 @@
|
||||||
2025-01-30 Oliver Kiddle <opk@zsh.org>
|
2025-01-30 Oliver Kiddle <opk@zsh.org>
|
||||||
|
|
||||||
|
* 53337: Doc/Zsh/mod_ksh93.yo, Src/Modules/ksh93.c: allow nameref -p
|
||||||
|
|
||||||
* 53336: Doc/Makefile.in, Etc/Makefile.in:
|
* 53336: Doc/Makefile.in, Etc/Makefile.in:
|
||||||
avoid GNU make specific use of $< in a non-inference rule
|
avoid GNU make specific use of $< in a non-inference rule
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ The single builtin provided by this module is:
|
||||||
startitem()
|
startitem()
|
||||||
findex(nameref)
|
findex(nameref)
|
||||||
cindex(named references, creating)
|
cindex(named references, creating)
|
||||||
item(tt(nameref) [ tt(-gur) ] var(pname)[tt(=)var(rname)])(
|
item(tt(nameref) [ tt(-gpur) ] var(pname)[tt(=)var(rname)])(
|
||||||
Equivalent to tt(typeset -n )var(pname)tt(=)var(rname)
|
Equivalent to tt(typeset -n )var(pname)tt(=)var(rname)
|
||||||
|
|
||||||
However, tt(nameref) is a builtin command rather than a reserved word,
|
However, tt(nameref) is a builtin command rather than a reserved word,
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static struct builtin bintab[] = {
|
static struct builtin bintab[] = {
|
||||||
BUILTIN("nameref", BINF_ASSIGN, (HandlerFunc)bin_typeset, 0, -1, 0, "gur", "n")
|
BUILTIN("nameref", BINF_ASSIGN, (HandlerFunc)bin_typeset, 0, -1, 0, "gpru", "n")
|
||||||
};
|
};
|
||||||
|
|
||||||
#include "zsh.mdh"
|
#include "zsh.mdh"
|
||||||
|
|
Loading…
Reference in a new issue