From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29136 invoked by alias); 18 Dec 2016 00:09:14 -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: X-Seq: 22229 Received: (qmail 20063 invoked from network); 18 Dec 2016 00:09:14 -0000 X-Qmail-Scanner-Diagnostics: from mta03.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.9):SA:0(-3.8/5.0):. Processed in 2.230473 secs); 18 Dec 2016 00:09:14 -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=-3.8 required=5.0 tests=RCVD_IN_DNSWL_LOW, RP_MATCHES_RCVD,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: rayandrews@eastlink.ca X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.eastlink.ca designates 24.224.136.9 as permitted sender) X-Authority-Analysis: v=2.2 cv=ZvqvEJzG c=1 sm=1 tr=0 a=PO7vbHvrMImvGZeqfA9mQA==:117 a=PO7vbHvrMImvGZeqfA9mQA==:17 a=IkcTkHD0fZMA:10 a=xwfcZuVcb9TkAIZUJocA:9 a=QEXdDO2ut3YA:10 a=4ymb3jchXm0A:10 X-EL-IP-NOAUTH: 24.207.113.71 Message-id: <5855CC93.2050505@eastlink.ca> Date: Sat, 17 Dec 2016 15:38:59 -0800 From: Ray Andrews User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Icedove/31.7.0 MIME-version: 1.0 To: zsh-users@zsh.org Subject: Re: trapped in bash References: <58540944.3030706@eastlink.ca> In-reply-to: Content-type: text/plain; charset=utf-8; format=flowed Content-transfer-encoding: 7bit On 12/17/2016 03:16 PM, Jim wrote: > > > _count=${#${(f)_variable}} > > This will remove the need for the variable _array. One caution, if your > not already aware, (f) removes blank lines, so they won't show up in > the count. > > Hope this helps, > > Jim > Thanks Jim, my experiments failed 'cuz I insisted on including the parenthesis, but since no array is created, no parenthesis are needed. Clear in hindsight.