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

Re: Bug#419832: zsh: expanding non-ASCII filenames with <TAB>



On Aug 17,  3:22pm, Peter Stephenson wrote:
} Subject: Re: Bug#419832: zsh: expanding non-ASCII filenames with <TAB>
}
} On Fri, 17 Aug 2007 08:08:44 -0400
} Clint Adams <schizo@xxxxxxxxxx> wrote:
} > What's worse is that if you `touch a b$'\300' c` in an empty directory,
} > cat *<TAB> will only expand to "a b".
} 
} I can believe there's some logic missing here, but it's not currently
} clear to me here what.  Could you post an explicit recipe for
} getting from an unconfigured shell to an expansion that doesn't
} (somehow) display all the elements?

This is a problem with old compctl, not compsys.

With compinit run and LANG=C and/or "unset LANG" I get:

schaefer<504> cat *<TAB>
schaefer<504> cat a
Completing expansions
a         b$'\300'  c       
Completing all expansions
a b$'\300' c
Completing original
*

With LANG=en_US I get:

schaefer<506> cat *<TAB>
schaefer<506> cat a
Completing expansions
a   bÀ  c 
Completing all expansions
a bÀ c
Completing original
*

With "compsys" turned off (old compctl completion) I get the something
sensible when LANG=en_US:

torch% cat *<TAB>
torch% cat a bÀ c

But the bug appears with LANG unset:

torch% cat*<TAB>
torch% cat a b

So the recipe PWS wants is just to run "zsh -f".



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