From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22887 invoked by alias); 3 Sep 2015 15:23:54 -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: 20499 Received: (qmail 29879 invoked from network); 3 Sep 2015 15:23:52 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 X-Authority-Analysis: v=2.1 cv=T/C1EZ6Q c=1 sm=1 tr=0 a=W9UYH+FrKn4AXTMgefo3uQ==:117 a=W9UYH+FrKn4AXTMgefo3uQ==:17 a=N659UExz7-8A:10 a=ytHfkTcXzHbpNx2MnE8A:9 a=pILNOxqGKmIA:10 Message-id: <55E86605.7080304@eastlink.ca> Date: Thu, 03 Sep 2015 08:23:49 -0700 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: string to array space problem in filenames References: <20150821215037.6b010cf7@ntlworld.com> <55DFC1E6.5090400@eastlink.ca> <55E0AE60.9090706@eastlink.ca> <150828124334.ZM7129@torch.brasslantern.com> <55E7C084.2060505@eastlink.ca> <150902222539.ZM18111@torch.brasslantern.com> In-reply-to: <150902222539.ZM18111@torch.brasslantern.com> Content-type: text/plain; charset=windows-1252; format=flowed Content-transfer-encoding: 7bit On 09/02/2015 10:25 PM, Bart Schaefer wrote: Thank you gentlemen, like riding a bike, it's easy if you know how: > You mean like: > > print -l "${array[@]}" > file > > Previous similar invocations of 'print' seemed to need this form: print -rlu2 "${array[@]}" > file ... which I took on faith, but as Bart shows, it seems that in this situation the 'ru2' are bad medicine. So my array reads/writes to file looking like this: /root /boot /aWorking/Zsh /root/.icedove/Ray/Mail/Local Folders /aRay /etc /aWorking ... spaces are protected, and it compresses fine. And select is happy. If it still works on Tuesdays so am I. So it was a useful exercise even if I now go on to see that 'cdr' does it all better anyway.