From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7711 invoked by alias); 7 Feb 2016 01:00:41 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 21250 Received: (qmail 16948 invoked from network); 7 Feb 2016 01:00:39 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 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== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version:content-type; bh=bvFbySryNDz2G9mIJorL1dUsELrXsInYND1U05aBQUw=; b=MYmIeRb+Z1BHhAQcO2djy3jfy0wOREnvSYMuD/MmtaLDxaJXDwOjwCgQr+cnmOPxVX xRvjIdVOxP2qf/q1DNdgxqLtGMlS3bhleu094VfiO4BTkywSO0sFJTm63ypSE0CAmP8c IedjdLkpmjfe/TBvFG+fHNp7oEgxsEwSgOYPZ7gmwiNtynt0RRZo8tGI7LNJI7CRUpRF xccHxJVHdM1/HvSn37iingUmEiNf5M+cydAn3PxUd35BcY+uxWoEsgXEpLPPE9thQRci eKpRaY3rzAw/1Q0UDIM2NljF/te+Pnt16LTvE72famNBVHfZfTohrnFkvm8yJ5F7alIc yxng== X-Gm-Message-State: AG10YORXU/Xopgju0AiDiDJi4pxHvZR8ZSeXvhGK9p2PYhFRJfXI1eY5WxxR9OECvezCdg== X-Received: by 10.66.252.163 with SMTP id zt3mr30377929pac.127.1454806837449; Sat, 06 Feb 2016 17:00:37 -0800 (PST) From: Bart Schaefer Message-Id: <160206170040.ZM1927@torch.brasslantern.com> Date: Sat, 6 Feb 2016 17:00:40 -0800 In-Reply-To: <20160207002212.GC24068@tarsus.local2> Comments: In reply to Daniel Shahaf "min() max() math functions (was: Re: Feature request (@M):# with context matches)" (Feb 7, 12:22am) References: <160130085456.ZM9730__49922.0612728552$1454172936$gmane$org@torch.brasslantern.com> <20160207002212.GC24068@tarsus.local2> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: Zsh Users Subject: Re: min() max() math functions (was: Re: Feature request (@M):# with context matches) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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.