Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
typeset tied array initialization silently dropped for already tied params
- X-seq: zsh-workers 36029
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh workers <zsh-workers@xxxxxxx>
- Subject: typeset tied array initialization silently dropped for already tied params
- Date: Sun, 9 Aug 2015 21:47:17 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=zGsHMVhXugSUupin90cq2mHf/eTvjdg+TyWAem8YF8M=; b=0n4aGLgx0dR296qfd4CMIwJ+GF6IYrtIHhy5hxrQA/P7X0cRWVfAHgTrUqXpGkegpy kPhiazIdSMV0lS2Ocfi1F577OMvb3PtHh2Tk/fyPi56hnQn9vqizV4ndLvpSlJVYast0 Qs9YSeE6YuBVYP8hhkVhGuSTS2QH2bnR8C1ksunQ2WQAn4NFT2XAq46FMLvp6VplLCRq 10P74Q7MvayoHTLSyMiAov3jI+3Lfazmysy1BUlchatOHdS+LAYyjEqZT2nfqXGWmHVw SqavVtRZACvT15Vj+lpfOmiubnE0NZxTUTefVvkc0JIcHxf+0Quf0/qRLbEY7Etl8xKD A+hQ==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
If you already tied SCALAR and array, then doing
typeset -T SCALAR array=(a b c)
silently has no effect, other than changing the separator to : or
whatever you specified there.
typeset -T SCALAR=foo:bar:baz array
does update the value though, and specifying both gives an error as expected.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author