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

Re: for loop 'bad math expression'



On Mon, Jan 29, 2024 at 7:47 PM Ray Andrews <rayandrews@xxxxxxxxxxx> wrote:
>
> +global:20:for for>bb=48E3CDF8.eml
> global:20: bad math expression: operator expected at `CDF8.eml'

% x=48E3CDF8
% echo $x
48E3CDF8
% integer x
zsh: bad math expression: operator expected at `CDF8'

So, something has declared "bb" to be an integer.




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