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

Re: Can you loop in math mode?



On Mon, 19 Aug 2019 at 08:41, Sebastian Gniazdowski
<sgniazdowski@xxxxxxxxx> wrote:
> lines_lengths=( ${lines_lengths[@]/(#m)*/$(( sum += ${#MATCH}+1 ))} )

The line should say:
lines_lengths=( ${lines[@]/(#m)*/$(( sum += ${#MATCH}+1 ))} )

> : ${lines_lengths[@]/(#m)*/$(( append(${#MATCH}) ))}

The same – the line should say:
: ${lines[@]/(#m)*/$(( append(${#MATCH}) ))}



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