Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] Make typeset -p1 work in combination with -m.
- X-seq: zsh-workers 41940
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: [PATCH] Make typeset -p1 work in combination with -m.
- Date: Thu, 19 Oct 2017 18:24:11 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=y49sKW twkLRXo64tYGEBViS1/ngPCyJGpRb4ltxy/rs=; b=Jzc8pV/6ta7Xv9Vq1XssRJ K9dZljTu4Wh+9iwEJHK9I8xXncLTY6qebmVykQQ10VcQJ+UVGYi9gdBWTiqNEl0N EQdYI/fdtGeQOD8tj8RonqViJk5VOJB7EKQ+QN+4txD06XMRUwuzw4tpbXLsQq5P 5efxwdTRdOj0VMQNTGIG0xh+ngqraix9V+qgJBM5Gs6e/eHuu2y5buqHtwmPl5y1 UBKW+PCkNKD84vFQ9vbPl+BSpvpGOoRcp7L1WZVhv4Wh8dVOMu5wF4fX5LOTNL8I oYxOy/YqSEjgbJDXBVi1gqwJCLQC4lBXLNti0e7LAUpmeT4btd9KF8NMFs62VZdw ==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=y49sKW twkLRXo64tYGEBViS1/ngPCyJGpRb4ltxy/rs=; b=IQ8WBSdr1d4LR2Me4Hebwm yQvZBw6BSdI3v3VfnBmVJ62Jbpo7fCh8TKF2QfUUdxiTL6tIZoT2SMboT6uUhbp2 7fnCTzsH0RFz7Tu95lBNpQAyfiNrO1TOmThSzrL/EjOtmFoE1cGuqov3noreAtLy NyTKRuA43wEjDF4s4fpTzPBgZJ5UWSgstW+h0tS2192N4XspRpKAR/hGDvQ/b/1l ivbQj4OvUku2K6CzvRPdOZxwqF/dR0m8algziuDj3AQ6nJv9rFv2qDbcmW6t4JVn jvRw4g3rbogTaj8KzYhqvljG7yu7qnMZZVSefH4JGUZ6Tn7WyCYQO1km3/3OzaOg ==
- In-reply-to: <20171019144043.pjinc3niymb6ioh4@tarpaulin.shahaf.local2>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CGME20171017182806epcas1p25cabca4be0c223080d6aa3b8fbd30055@epcas1p2.samsung.com> <20171017182700.28303-1-danielsh@tarpaulin.shahaf.local2> <20171018093119.5c82eaa0@pwslap01u.europe.root.pri> <20171019144043.pjinc3niymb6ioh4@tarpaulin.shahaf.local2>
Daniel Shahaf wrote on Thu, 19 Oct 2017 14:40 +0000:
> Peter Stephenson wrote on Wed, Oct 18, 2017 at 09:31:19 +0100:
> > On Tue, 17 Oct 2017 18:27:00 +0000
> > Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
> > > The PRINT_INCLUDEVALUE codepath will now pass
> > > PRINT_LINE|PRINT_TYPESET|PRINT_INCLUDEVALUE; is that correct?
> >
> > Yes, as long as the resulting output makes sense the flag can be passed
> > through.
>
> Ack. I'll double check the output before pushing.
There's an unwanted output change:
before% typeset -m argv
argv=( )
after% typeset -m argv
array argv
It persists even if I strip the PRINT_TYPESET bit at the PRINT_INCLUDEVALUE callsite.
Hopefully this rings a bell to someone? It looks like some issue with the PRINT_* flags.
In the meantime here's a regression test.
Daniel
diff --git a/Test/B02typeset.ztst b/Test/B02typeset.ztst
index 996af064f..3aea55d4c 100644
--- a/Test/B02typeset.ztst
+++ b/Test/B02typeset.ztst
@@ -794,6 +794,10 @@
1:Mixed syntax with [key]=val not allowed for hash.
?(eval):1: bad [key]=value syntax for associative array
+ () { typeset -m argv }
+0:typeset -m of array, without pattern matching (regression)
+>argv=( )
+
local -a myarray
typeset -p1 myarray
myarray=("&" sand '""' "" plugh)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author