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

Re: zmathfunc: min, max, sum throw error if result equals 0



Bart Schaefer wrote on Fri, 16 Apr 2021 20:05 +00:00:
> and why not
> 
>   (( arg < result ))
>   case $? in
>     (0) (( result = arg ));;
>     (1) ;;
>     (*) return $?;;
>   esac
> done
> (( result ))
> 
> ??

I simply missed that in the pre-posting review.  I'll change it before committing.

Thanks for the review, Bart.

Daniel




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