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

Re: 5.3.1 - lot of bad math expression



On Mon, 16 Jan 2017 18:22:50 +0100
Jens Elkner <jel+zsh@xxxxxxxxxxxxxxxxxxx> wrote:
> when trying to find a solution/propper settings for the
> X=./{etc,bin} ; ls $X   problem I decided to give the latest release aka
> 5.3.1 a try. However, here I get a lot of errors wrt. the default
> completion files e.g. for ls\t like:
> 
> _arguments:360: bad math expression: operator expected at `descrs'
> _main_complete:341: bad math expression: operator expected at
> `lastdescr'
> _main_complete:380: bad math expression: operator expected at
> `comp_color...'

Looks like that's the POSIX_IDENTIFIERS option.

The _comp_options arrays is there to try to limit option changes so that
most user options percolate through into the completion code.  The
trouble is, as you've discovered, this doesn't really work.

pws

diff --git a/Completion/compinit b/Completion/compinit
index 2715c47..cc663cb 100644
--- a/Completion/compinit
+++ b/Completion/compinit
@@ -154,6 +154,7 @@ _comp_options=(
     NO_markdirs
     NO_octalzeroes
     NO_posixbuiltins
+    NO_posixidentifiers
     NO_shwordsplit
     NO_shglob
     NO_warncreateglobal



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