From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27414 invoked from network); 13 Feb 2007 05:00:32 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,FORGED_RCVD_HELO autolearn=ham version=3.1.7 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 13 Feb 2007 05:00:32 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 48559 invoked from network); 13 Feb 2007 05:00:27 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 13 Feb 2007 05:00:27 -0000 Received: (qmail 12587 invoked by alias); 13 Feb 2007 05:00:23 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 23167 Received: (qmail 12577 invoked from network); 13 Feb 2007 05:00:22 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 13 Feb 2007 05:00:22 -0000 Received: (qmail 48245 invoked from network); 13 Feb 2007 05:00:22 -0000 Received: from vms044pub.verizon.net (206.46.252.44) by a.mx.sunsite.dk with SMTP; 13 Feb 2007 05:00:16 -0000 Received: from torch.brasslantern.com ([71.116.79.148]) by vms044.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0JDD0098MXVH89A5@vms044.mailsrvcs.net> for zsh-workers@sunsite.dk; Mon, 12 Feb 2007 22:59:42 -0600 (CST) Received: from torch.brasslantern.com (localhost.localdomain [127.0.0.1]) by torch.brasslantern.com (8.13.1/8.13.1) with ESMTP id l1D4xee5002874 for ; Mon, 12 Feb 2007 20:59:40 -0800 Received: (from schaefer@localhost) by torch.brasslantern.com (8.13.1/8.13.1/Submit) id l1D4xe7Z002873 for zsh-workers@sunsite.dk; Mon, 12 Feb 2007 20:59:40 -0800 Date: Mon, 12 Feb 2007 20:59:40 -0800 From: Bart Schaefer Subject: Re: Quoting problem and crashes with ${(#)var} In-reply-to: <200702102208.l1AM8ner009906@pwslaptop.csr.com> To: zsh-workers@sunsite.dk Message-id: <070212205940.ZM2872@torch.brasslantern.com> MIME-version: 1.0 X-Mailer: OpenZMail Classic (0.9.2 24April2005) Content-type: text/plain; charset=us-ascii References: <200702102208.l1AM8ner009906@pwslaptop.csr.com> Comments: In reply to Peter Stephenson "Re: Quoting problem and crashes with ${(#)var}" (Feb 10, 10:08pm) On Feb 10, 10:08pm, Peter Stephenson wrote: } } Bart Schaefer wrote: } > With zsh -f from the latest CVS as of 2007-02-10 10:28 AM PST: } > } > torch% for x in {1..255}; echo -n ${(#)x}; echo '' } } I think this is it, but shout if you can see any problems left... It doesn't crash any more. I'm a bit puzzled, given this test ... } if (isset(MULTIBYTE) && ires > 127) { ... why ${(V)x} for x in 128 through 159 display as \u0080 through \u009f, but then 160 through 255 are treated as directly printable. Furthermore, if I run with LANG=C I get % for x in {1..254}; h[x]=${(V#)x} zsh: character not in range That seems wrong. It does the right thing if "unsetopt multibyte" is also in effect, but why should I have to explicitly do so?