1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-02 22:11:54 +02:00

53337: allow nameref -p

This commit is contained in:
Oliver Kiddle 2025-01-30 12:51:37 +01:00
parent e3f7f2fc85
commit 20990fa7e4
3 changed files with 4 additions and 2 deletions

View file

@ -1,5 +1,7 @@
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:
avoid GNU make specific use of $< in a non-inference rule

View file

@ -12,7 +12,7 @@ The single builtin provided by this module is:
startitem()
findex(nameref)
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)
However, tt(nameref) is a builtin command rather than a reserved word,

View file

@ -38,7 +38,7 @@
*/
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"