From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4271 invoked from network); 26 Apr 2008 15:06:03 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.2.4 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 26 Apr 2008 15:06:03 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 97456 invoked from network); 26 Apr 2008 15:05:57 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 26 Apr 2008 15:05:57 -0000 Received: (qmail 6868 invoked by alias); 26 Apr 2008 15:05:54 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 24870 Received: (qmail 6851 invoked from network); 26 Apr 2008 15:05:53 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 26 Apr 2008 15:05:53 -0000 Received: from cork.scru.org (cork.scru.org [80.68.89.82]) by bifrost.dotsrc.org (Postfix) with ESMTP id 43C40808A38A for ; Sat, 26 Apr 2008 17:05:49 +0200 (CEST) Received: by cork.scru.org (Postfix, from userid 1000) id 1CA3718183; Sat, 26 Apr 2008 16:05:49 +0100 (BST) Date: Sat, 26 Apr 2008 16:05:48 +0100 From: Clint Adams To: zsh-workers@sunsite.dk Cc: Samuel Thibault , 478019@bugs.debian.org Subject: Re: Bug#478019: zsh: Should handle non-breaking space as word separator Message-ID: <20080426150548.GB6165@scru.org> Mail-Followup-To: zsh-workers@sunsite.dk, Samuel Thibault , 478019@bugs.debian.org References: <20080426110003.GA16650@implementation> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20080426110003.GA16650@implementation> User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: ClamAV 0.91.2/6954/Sat Apr 26 16:17:49 2008 on bifrost X-Virus-Status: Clean On Sat, Apr 26, 2008 at 12:00:03PM +0100, Samuel Thibault wrote: > Hello, > > On a french keyboard, '|' is typed by using alt-gr, and the non-breaking > space is often typed by using alt-gr space. That often leads to this: > > € echo a | grep a > zsh: command not found:  grep > > Because zsh looks for a " grep" command, with leading non-breaking space > because my thumb remained a bit too long on the alt-gr key. > > This doesn't happen with bash, because bash treats non-breaking space as > a word separator. Could zsh do the same? (currently, I have defined > alias  grep=grep > alias  vi=vi > ...) Having locale-based (and multibyte) word separators sounds like a nightmare to me, but maybe someone has some ideas.