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

Re: Bug#283358: echo $((##)) overflows buffer



> falk@juist:~% echo $((##))
> zsh: bad math expression: operator expected at `T\n^E ^A'
> 
> I also get "operator expected at `Œ'" sometimes. It seems to access
> uninitialized memory.

Can you track this down with gdb?

> This also makes a test fail:
> (http://buildd.debian.org/fetch.php?&pkg=zsh&ver=4.2.1-12&arch=alpha&stamp=1101580428&file=log&as=raw)
> 
> ./../Test/C01arith.ztst: starting.
> Test ../../Test/C01arith.ztst failed: bad status 1, expected 0 from:
>   print $((##))
> Error output:
> (eval):1: bad math expression: operator expected at `T\n^E ^A'
> Was testing: ## without following character
> ../../Test/C01arith.ztst: test failed.
> 
> I think you should have the build fail if a test fails.

Can't do this; at least one test fails on every architecture.



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