Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
nameref and argv
- X-seq: zsh-workers 52318
- From: Stephane Chazelas <stephane@xxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: nameref and argv
- Date: Tue, 21 Nov 2023 10:27:18 +0000
- Archived-at: <https://zsh.org/workers/52318>
- List-id: <zsh-workers.zsh.org>
$ ./Src/zsh -c 'f() { nameref a=argv; g x y; }; g() { echo $a; }; f a b
c'
x y
I was expecting to see "a b c" there like in:
$ ./Src/zsh -c 'f() { local args=(a b c); nameref a=args; g}; g() {
local args=(x y); echo $a; }; f'
a b c
--
Stephane
Messages sorted by:
Reverse Date,
Date,
Thread,
Author