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

Re: min() max() math functions (was: Re: Feature request (@M):# with context matches)



On Feb 7, 12:22am, Daniel Shahaf wrote:
} Subject: min() max() math functions (was: Re: Feature request (@M):# with 
}
} I've wished a number of times for a built-in max() math function

You provided such nice implementations with "functions -M".  Why is it
important that they be built-ins?

Generally speaking we've done builtins only where (a) there is a library
implementation easily linked with or (b) the results of C type coercion
are at odds with the desired behavior of shell numeric-typed parameters.



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