From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19495 invoked by alias); 10 Feb 2018 21:06:26 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 23124 Received: (qmail 10417 invoked by uid 1010); 10 Feb 2018 21:06:26 -0000 X-Qmail-Scanner-Diagnostics: from mta04.eastlink.ca 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(24.224.136.10):SA:0(-2.6/5.0):. Processed in 1.06332 secs); 10 Feb 2018 21:06:26 -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=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: rayandrews@eastlink.ca X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | MIME-version: 1.0 Content-transfer-encoding: 8BIT Content-type: text/plain; charset=utf-8; format=flowed X-Authority-Analysis: v=2.3 cv=dfKuI0fe c=1 sm=1 tr=0 a=RnRVsdTsRxS/hkU0yKjOWA==:117 a=RnRVsdTsRxS/hkU0yKjOWA==:17 a=IkcTkHD0fZMA:10 a=dZMFJRZpAAAA:8 a=ep4Xtxb-TrgRM97sDrQA:9 a=QEXdDO2ut3YA:10 a=0ALrU5orTrKXcsu2oHG6:22 X-EL-IP-NOAUTH: 24.207.101.9 Subject: Re: newline grief To: zsh-users@zsh.org References: <03c557f4-e55e-f33d-6875-fedbb99212b8@eastlink.ca> From: Ray Andrews Message-id: Date: Sat, 10 Feb 2018 12:36:20 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 In-reply-to: Content-language: en-CA On 10/02/18 11:46 AM, Eric Cook wrote: > > for aa in "${(f)$(typeset -m 'var*')}"; do > .... > > While all of it isn't applicable to zsh: this explains what happened in your case: > http://mywiki.wooledge.org/DontReadLinesWithFor > Thanks Eric, that works fine.  Bart's quoting by itself did not work.  I despair of every really understanding -- parsing in my own head -- how those syntaxes work.  I got as close as " ..."${(f) ... " but managed to drop the ball.  Thanks for that link, I had no idea for loops and while loops were really any different internally, is that widely known? BTW, is there some way to get typeset to print out just the variables, not the values?  As I read the doc the '-m' switch seems not to like the '-H' or '+' switches, so it seems I can't have the globed variable name with no values printed.  It seems an unlikely limitation.