From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16337 invoked by alias); 29 Sep 2017 22:55:38 -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: 41794 Received: (qmail 10942 invoked by uid 1010); 29 Sep 2017 22:55:38 -0000 X-Qmail-Scanner-Diagnostics: from mail-pg0-f41.google.com 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(74.125.83.41):SA:0(-1.9/5.0):. Processed in 2.34154 secs); 29 Sep 2017 22:55:38 -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=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_PASS,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: schaefer@brasslantern.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=/jIgkxdzqzzMlqfRHlOtdrrOzzN9laajTjljm8o4ZJk=; b=zmYzCDTCioyt7myJhbPNsRA0HETl4RPeaFlrl7jcmJNwPPt769zYo+UuuqYNA/6x7d cOPdLhUdCQYAejEtB1Y5K98QZf+VpyClGMiQvUWw7klNTGkkPwb2s023njWU7VNMQMo2 NULKoAQpziwVH3wcrcH0h75+Iq1fZKHOw5AhTFvL2pzZ9urjt8T8bdUHiqQx9Gwu2CWm FpXSU721fbz/em9H5/MlXUA9zzOORwvOfHgaPv++oxCRZh6Pl4x8QY4p+pWKA1VOjZ7F ZtwdzU0WAoa8a5i5dTwMkyHfwZf6/Gj2/XoTGOZruMt4zQAbzkMOD6KCZdvZSDYHm7oL MFyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version; bh=/jIgkxdzqzzMlqfRHlOtdrrOzzN9laajTjljm8o4ZJk=; b=BNKhT3Wpu1Le9QeZYzTgcGo7OtBu6wc4c4W+G+aIhzvSulZiYRk2EH4tbxbuQi6NM6 fRT9eF+0JRcFOyr0A5N17o2LbyEHguwS6ByrO/FIP0roDy/NF0kXilVOa6LmwdxebG0Z VoMD52MTM6vQDb8sUshGBa5vQUwvIfeGcE2p/YeSBawAEAaqwoHazWWT+EM2NsU+u4Yp VWig3wxbM0d0XCOImKy+eRxldhEHsf9sGGW9lG5l0B677yNBrQWa4tw7IkM5VtgOg5rP yN6KFq82SLtcn6Yfe1ezZmktYwIMeZGtEU5kwq5yIsGFaDDrUWvZRuo6XQIWK82z0CLr UNaQ== X-Gm-Message-State: AHPjjUiRLaKnK7MrV95vY71pvWRq+L8ppkvad9Dsk4UzcBS2TI+2cc+i SOUEJWkfV+tR1eHpO0JbAZSz1gKu X-Google-Smtp-Source: AOwi7QAMOgKbnOGcOCPtyroGP+buKVpy2Ksdr+6MKWmqPDNNFxfLGGu9RrPa9qA0rqLJ6gD4xiwEiA== X-Received: by 10.99.185.93 with SMTP id v29mr7181296pgo.32.1506725731435; Fri, 29 Sep 2017 15:55:31 -0700 (PDT) From: Bart Schaefer Message-Id: <170929155533.ZM15802@torch.brasslantern.com> Date: Fri, 29 Sep 2017 15:55:33 -0700 In-Reply-To: <20170929205059.5fa7eb4d@ntlworld.com> Comments: In reply to Peter Stephenson "Fw: PATCH: typeset -P" (Sep 29, 8:50pm) References: <20170929205059.5fa7eb4d@ntlworld.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: Zsh hackers list Subject: Re: Fw: PATCH: typeset -P MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Sep 29, 8:50pm, Peter Stephenson wrote: } } +item(tt(-P))( } +Identical to tt(-P), except that arrays and associative arrays are Need to lower-case that second -P. I'm ambivalent about this choice of option letter, though. What about something entirely unlikely to conflict, like -1 (ala "ls -1")? Then e.g. one could use the idiom "typeset -p1" to make it obvious. We could also have "typeset -2" to output associative arrays in the old (k1 v1 k2 v2 ...) format (I suppose "typeset -12" would then print a newline after each value but not after each key). I have two requests with respect to the rest of this patch: (1) Don't print the blank line for arrays with no elements, e.g. NOT typeset -a cdpath=( ) Ideally this would just be cdpath=() as before, but I could live with one line break in the parens. (2) Indent each element by a couple of spaces.