From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: zsh-users-return-23739-ml=inbox.vuxu.org@zsh.org X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 174e43fe for ; Wed, 31 Oct 2018 10:00:45 +0000 (UTC) Received: (qmail 17838 invoked by alias); 31 Oct 2018 10:00:30 -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: 23739 Received: (qmail 23464 invoked by uid 1010); 31 Oct 2018 10:00:30 -0000 X-Qmail-Scanner-Diagnostics: from mail-io1-f54.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(209.85.166.54):SA:0(-2.0/5.0):. Processed in 1.577354 secs); 31 Oct 2018 10:00:30 -0000 X-Envelope-From: mikachu@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=itZ3j+514VJD9fQKi6p/L9dTwxqIICwNaZv2aRi9Zc0=; b=c+coyt2bA8mcoWTuXf8yAX/ariTnNgD+mw/XsC7W3QmybwSlleK3K8rDEmuLSl3Itf HxO3BnTsBARv/oj8hVECwL7+4MnbQZ8+8crayJDLcCuZzfdmSAKN1SBEKmLRhaXEI13R VlE7hvJOroXwxpWw2C7eWAvtVWw4CzgyYcyMvdjQdJgT2VGwg60Ve96TKkYiNOq97Juj +ONOTare5oRJruo4Zg/elwAciN8cpZx73QTh8n1/bCTY4z+qtQGZaxCJmyvgA7dhi57h jVKorPusJKFuh2CgX3Rjv+BrYULeiCcUhCor3W0lemDBxpcJXEFVdyJm77NdR8gwrZQz bLfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=itZ3j+514VJD9fQKi6p/L9dTwxqIICwNaZv2aRi9Zc0=; b=JGhxSNI4PMorB02x0Ee3GCa6YqTDFXhJLrHJrt2Pweo0npHE3ZSPu6qTfGlTER9UCe MRT1ITWw2sq53i3XnoxUeyKdpAFtAeOqGRXwy4mChC6I/yuzHdF382PRhAnXH/0K4hoJ H3o+IkdTCBloqGfb/X/JIWEHKst5lzW1uN99lMWDwQ6JXmrrh0ZpoUHfGxCnELP++Tcc epfKHMj5KyMdnmUa/ATI+lRJ1vopLtgbi0rsympugG1v31PaSvikm1v+OlejAWpsJYAy ClSr+97hs3IOoG6dZQGrUeKR9OsVT4NSookmeLGUSURudtXVSLjYZXLhb4B58xZBuOCg LScg== X-Gm-Message-State: AGRZ1gJOQ/r45DbBoM972c+1TWQ968RRpsXzMczp1FSg6Pttn1ZAKARS TA23emSJV4ISho/aQTuwqeAyTqfAWZTtyBN3UOc= X-Google-Smtp-Source: AJdET5cSFsHCLRVxqC37s6FpMOQJMcP43xdCwPOol236w002N96GUsa9jPmJs38Vhn4zHogOur2k3zKpNzeSrSE+HYY= X-Received: by 2002:a6b:6010:: with SMTP id r16-v6mr1338436iog.189.1540980025009; Wed, 31 Oct 2018 03:00:25 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: From: Mikael Magnusson Date: Wed, 31 Oct 2018 11:00:24 +0100 Message-ID: Subject: Re: Printing empty array elements To: =?UTF-8?Q?Jesper_Nyg=C3=A5rds?= Cc: Zsh Users Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On 10/31/18, Jesper Nyg=C3=A5rds wrote: > Aargh. Twenty years of shell programming, and still I'm making rookie > mistakes when it comes to quoting. The answer is of course: > > % print -l "$rlines[@]" You can also use "${(@)rlines}" as in the first line of your code (which is also necessary if you want to use a subscript range). --=20 Mikael Magnusson