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

Re: shuffle array



Daniel Shahaf wrote:

>> How do I send the array as a name/pointer
>> argument, i.e. not just the value?
>
> To read an array by name:
>
> f() {
>  local array_name=$1
>  print -rl -- "${(@P)array_name}"
> }
> typeset -a foo=(bar baz)
> f foo [...]

Thanks a lot for all that wonderful info! :)

That should be the last piece of the puzzle Gw!

> gmane.comp.shells.zsh.user and
> zsh-users@xxxxxxx are the same thing

... OK?

-- 
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal



Messages sorted by: Reverse Date, Date, Thread, Author