Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Bug#478019: zsh: Should handle non-breaking space as word separator



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.



Messages sorted by: Reverse Date, Date, Thread, Author