From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17304 invoked by alias); 29 Oct 2016 18:48:46 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 39760 Received: (qmail 9819 invoked from network); 29 Oct 2016 18:48:46 -0000 X-Qmail-Scanner-Diagnostics: from know-smtprelay-omc-5.server.virginmedia.net by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(80.0.253.69):SA:0(-0.0/5.0):. Processed in 0.467459 secs); 29 Oct 2016 18:48:46 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: p.w.stephenson@ntlworld.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _smtprelay.virginmedia.com designates 80.0.253.69 as permitted sender) X-Originating-IP: [86.21.219.59] X-Spam: 0 X-Authority: v=2.1 cv=HZrpNXw8 c=1 sm=1 tr=0 a=utowdAHh8RITBM/6U1BPxA==:117 a=utowdAHh8RITBM/6U1BPxA==:17 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=kj9zAlcOel0A:10 a=q2GGsy2AAAAA:8 a=uwp9u_4QmvBlL11n_LgA:9 a=CjuIK1q_8ugA:10 a=z9dJwno5l634igLiVhy-:22 Date: Sat, 29 Oct 2016 19:43:08 +0100 From: Peter Stephenson To: Zsh hackers list Subject: Re: exported unset variables [was: 'export -p' lacks POSIX output] Message-ID: <20161029194308.32b96bca@ntlworld.com> In-Reply-To: <161029110904.ZM2918@torch.brasslantern.com> References: <9a5b08ae-f45b-d1df-9b3b-dd47a0f62412@inlv.org> <161028143156.ZM19947@torch.brasslantern.com> <161028171859.ZM2366@torch.brasslantern.com> <6db9e2a5-8f0b-71a2-95e6-8a8bbf4a281e@inlv.org> <161029110904.ZM2918@torch.brasslantern.com> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.28; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Sat, 29 Oct 2016 11:09:04 -0700 Bart Schaefer wrote: > That one potentially gets rather ugly; consider: > > % setopt POSIXBUILTINS > % export var > % var=() > zsh: var: attempt to assign array value to non-array > > Is that OK with everyone? We've generally taken the attitude that POSIX copmliance settings aren't intended to be useful to native zsh users, just compatible for everyone else, so what it used to do isn't a big issue. I think this fits in that category. I don't think exporting arrays would be that hard, but if you want to do it, the right way is probably to use "typeset -T" and specify which character you want the elements to be joined with. pws