Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

nameref and argv



$ ./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