From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24005 invoked by alias); 10 Oct 2015 04:25:50 -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: 20725 Received: (qmail 16944 invoked from network); 10 Oct 2015 04:25:49 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=jf6mlxlK1p9BpNoS4ylstyD8tuetOYLfhCIy/r0J3Vg=; b=u0hOQ2zO4zpZI0BvZH1elNZbqw52WmIJh0g1f+GdhLtxDIyD/Ct1ZYTNP1+3zTK8nl E636tSYlbkS20PiNXp2RFo2RSB1WGdumZ1dHug0ueMQzpLvjc7ZJXNAl0Mg6/XhavJyC zcgzzNIabdoXL+jPldO4D0L1AlYhr3sh8mqile0Xu7WZRIGjo7Qc4adLHEaUQRSvgr0W GlX9IkK5CScDJrx3uZPkWjgjTbU2AuJuepqufFLqahUUDGJpyUNK1dFDIC6PLXgatcLt TxTf+c2XZrpJhInXLRYRad2y8OO6Uu8PAQjCuw/OtPwEPX3GlMiCLt7/4VH/RloPrYo8 s7vw== MIME-Version: 1.0 X-Received: by 10.140.100.182 with SMTP id s51mr18566287qge.25.1444451147060; Fri, 09 Oct 2015 21:25:47 -0700 (PDT) In-Reply-To: <561884F1.4030607@eastlink.ca> References: <20151009220942.GH12039@sym.noone.org> <151009160452.ZM5208@torch.brasslantern.com> <4505.1444437453@thecus.kiddle.eu> <20151010005939.GK12039@sym.noone.org> <561884F1.4030607@eastlink.ca> Date: Sat, 10 Oct 2015 06:25:47 +0200 Message-ID: Subject: Re: what is truth? From: Mikael Magnusson To: Ray Andrews Cc: Zsh Users Content-Type: text/plain; charset=UTF-8 On Sat, Oct 10, 2015 at 5:24 AM, Ray Andrews wrote: > > test () > { > [[ "$1" = <-> ]] && echo true > } > > I don't have a clue what to make of ' <-> '. What value > would work? In zsh pattern matching, , where x and y are numbers, it matches a number (of any length) between x and y, numerically. If you leave either end out, that end is open. So <-> matches a numeric expression of any length, viz % test abc % test 123 true % test 123abc -- Mikael Magnusson