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)
- X-seq: zsh-users 21250
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: min() max() math functions (was: Re: Feature request (@M):# with context matches)
- Date: Sat, 6 Feb 2016 17:00:40 -0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version:content-type; bh=bvFbySryNDz2G9mIJorL1dUsELrXsInYND1U05aBQUw=; b=Ymi5INkF06cmjNH5L6H8lefZ2hsZCk6p39zMlM8Knq90U4sZ+NFN1J8cSKF/ieyuHd cbCv/cYvLhodm0j+sVqrn0ihFlqWPZIchRG+2RC2dxgpMoiT2KSJGRMvxUp8dLcCL050 l9k2UZWLQLP9OsFkh+w1vDmeiBofASAnNHEflGAMxiC+U8cr25WV95zFskmjXmNrGgCI L7f5kDWjUBccDr2dQx3NfLtEvoVbOnclIOgLgKL5tAoJpPKDTeWEhVYw+/QrpJs0khoX fXDuOk/sRCtPwRmjDam3w717iKqtw4CfiaQHnf/qkYWNuqTUZmu44QdV6gchoWB2muXZ VIDg==
- In-reply-to: <20160207002212.GC24068@tarsus.local2>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVDCOPzbU25+vTAXMQjonS1sznDX_SBq4-8rUZPQewa5Tg@mail.gmail.com> <CAKc7PVAe0N2bp2XS5U4mOKnTgxQRsj4UGy7NQpHput9VsbnAJw@mail.gmail.com> <160130085456.ZM9730__49922.0612728552$1454172936$gmane$org@torch.brasslantern.com> <20160207002212.GC24068@tarsus.local2>
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