From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13507 invoked by alias); 6 Aug 2012 16:05:13 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 30598 Received: (qmail 24028 invoked from network); 6 Aug 2012 16:05:10 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) 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 autolearn=ham version=3.3.2 Received-SPF: neutral (ns1.primenet.com.au: 74.125.83.43 is neither permitted nor denied by SPF record at ntlworld.com) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-proxyuser-ip:date:from:to:subject:message-id:in-reply-to :references:x-mailer:mime-version:content-type :content-transfer-encoding:x-gm-message-state; bh=wI5b5lOqOCf8D+y/eww6WWGBLgMigEDTDXoNIjNXfU8=; b=plUayQbeBDUopVWzE6C+9L1kcjD0zk5zT7ok2+XAa4ixVga+NeFHrRxs2blC0bmTJq dOWa85jfCIZzsGdPWyicQtFa57nzVp9dqUH3tk+0vgr3KyeYohp/6q0eKaD/AvnAAwyf laVcsXKTgdLycLCZgS4IkNwgcbjue9ty7tqaavLoylRzhSHYtbB4wFt514/M/p1rgQF6 ARZVLR23gRF7fG6RdbByF59t7C+FlSxnlNGcdPRoeAHgLw6MZz2WswqsN10M0E6scPu7 3k8kFiRvY9zUnoTjNm4QdNkEcGs3O34itoGCD2avxZjKx4ndSnepvUvMaovTQYnst7Ze NKSg== X-ProxyUser-IP: 86.6.16.18 Date: Mon, 6 Aug 2012 17:04:59 +0100 From: Peter Stephenson To: zsh-workers@zsh.org Subject: Re: On "the usual behaviour" of empty array elements Message-ID: <20120806170459.6fbbb1af@pws-pc.ntlworld.com> In-Reply-To: <120707103722.ZM6248@torch.brasslantern.com> References: <120707103722.ZM6248@torch.brasslantern.com> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.7; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQl4fry9sxndVvc+KLa2CiEclmRJi7RBiuAiaewtRAFY9pQVYeXAx4rPBGpvAPKguL8TBU94 On Sat, 07 Jul 2012 10:37:22 -0700 Bart Schaefer wrote: > A fairly recent addition to the doc for the (s::) parameter flag is this: > > For historical reasons, the usual behaviour that empty array > elements are retained inside double quotes is disabled for arrays > generated by splitting > > The thing is, I can't find anywhere else that "the usual behavior" of > empty array elements is even mentioned. > > Far more interesting than the retention of empty array elements in double > quotes, I think, is that empty array elements are NOT retained when the > array parameter reference is NOT in quotes. > > Is there something I just haven't spotted? I confess > I merely searched the doc rather than re-read it cover to cover. I should have replied to this... I don't think I've ever searched, so it's quite possible it's just something "everyone knows", except when they don't. We should put something in the parameter expansion section in any case. -- Peter Stephenson Web page now at http://homepage.ntlworld.com/p.w.stephenson/