From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5980 invoked from network); 22 Aug 2001 17:12:10 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 22 Aug 2001 17:12:10 -0000 Received: (qmail 17567 invoked by alias); 22 Aug 2001 17:11:53 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 4162 Received: (qmail 17554 invoked from network); 22 Aug 2001 17:11:52 -0000 From: martin.ebourne@arcordia.com Expiry-Date: Tue, 20 Nov 2001 -1:-1:-1 +0000 Subject: Re: Zsh Guide chapter 5 (substitutions) To: zsh-users@sunsite.dk Date: Wed, 22 Aug 2001 18:10:22 +0100 Message-ID: X-MIMETrack: Serialize by Router on LON-ARCMTA-01/ARCORDIA(Release 5.0.3 (Intl)|21 March 2000) at 08/22/2001 06:10:23 PM MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii I don't know if anyone has already pointed this out, but in the user guide section 5.4.2: perl zsh ----------------------------------------------------------------- %hash2 = %hash; typeset -A hash2; hash2=(${(kv)hash}) Surely this should be hash2=("${(@kv)hash}") in case of empty string values. Also, a little above in 5.4.1, this bit is not quite right (missing the 'array[]'). % array=(some words) % args() { print $#; } % args ${(r)s*} 1 % args ${(r)X*} 0 % args "${(r)X*}" 1 Cheers, Martin. This e-mail message is CONFIDENTIAL and may contain legally privileged information. If you are not the intended recipient you should not read, copy, distribute, disclose or otherwise use the information in this e-mail. Please also telephone or fax us immediately and delete the message from your system. E-mail may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof.