Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: 5.3.1 - lot of bad math expression
- X-seq: zsh-workers 40372
- From: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- To: Jens Elkner <jel+zsh@xxxxxxxxxxxxxxxxxxx>, zsh-workers@xxxxxxx
- Subject: Re: 5.3.1 - lot of bad math expression
- Date: Mon, 16 Jan 2017 17:48:52 +0000
- Cms-type: 201P
- In-reply-to: <20170116172250.GA17611@trex.cs.ovgu.de>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- Organization: Samsung Cambridge Solution Centre
- References: <CGME20170116172413epcas2p175e693f3a2c0949043f4edaa7c67158f@epcas2p1.samsung.com> <20170116172250.GA17611@trex.cs.ovgu.de>
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