From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12387 invoked by alias); 3 Sep 2015 16:08:23 -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: 20502 Received: (qmail 8749 invoked from network); 3 Sep 2015 16:08:22 -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-AuditID: cbfec7f5-f794b6d000001495-56-55e870728ad2 Date: Thu, 03 Sep 2015 17:08:10 +0100 From: Peter Stephenson To: zsh-users@zsh.org Subject: Re: string to array space problem in filenames Message-id: <20150903170810.09eef74e@pwslap01u.europe.root.pri> In-reply-to: <55E86E0C.1000806@eastlink.ca> 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> <55E86605.7080304@eastlink.ca> <55E86E0C.1000806@eastlink.ca> Organization: Samsung Cambridge Solution Centre X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrMLMWRmVeSWpSXmKPExsVy+t/xq7pFBS9CDe69NLfYcXIlowOjx6qD H5gCGKO4bFJSczLLUov07RK4Mtonz2QtOMBa8f74d/YGxmUsXYycHBICJhKHP1xlhLDFJC7c W88GYgsJLGWU2LhJqouRC8iexiSx9/tbNghnK6PEmsmvgDo4OFgEVCV2vHYCaWATMJSYumk2 2CARAVGJ5Ss2s4PYwgLmEq9ffwezeQXsJXY8vsUMYnMKaEtM+P2DCWLmAWaJ7jlzwDbzC+hL XP37iQniInuJmVfOMEI0C0r8mHwP7GpmAS2JzduaWCFseYnNa94yQ1ytLnHj7m72CYxCs5C0 zELSMgtJywJG5lWMoqmlyQXFSem5RnrFibnFpXnpesn5uZsYIUH7dQfj0mNWhxgFOBiVeHgn zH4eKsSaWFZcmXuIUYKDWUmENyP7RagQb0piZVVqUX58UWlOavEhRmkOFiVx3pm73ocICaQn lqRmp6YWpBbBZJk4OKUaGLnEnp68/WxPZcOWKdsema929r12T1w7uf9/xBLx+s1qLx5XR778 uy8g/YRBo57U2r6da//d/tcpuNP59xw7vYbNGtP41wSdn3u/5teLciWOvyf7DlTqrQm913DX 6PIvdfu+1cu3np1xIeN25wF+M43FqrdmXZomsZRpf09/u1iRU0HD1ZKID5uUWIozEg21mIuK EwFYs/asVgIAAA== On Thu, 3 Sep 2015 08:58:04 -0700 Ray Andrews wrote: > however one further question: > > print -rl - "${array[@]}" > file > > ... do I or don't I like the double dash that seems to usually be there? > And a few code specimens have shown no dash(es) at all there, which scares > me since disaster is never far away from the unwary. "-" is a longer standing way of doing things here; "--" is a more recent standard. Unless you're using a very old version of the shell it doesn't matter. Yes, getting into the habit of using those anyway is a good idea. If you're dealing with file names absolute paths, though, you'll get away with on this occasion. pws