From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13860 invoked by alias); 10 Oct 2015 04:47:44 -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: 20727 Received: (qmail 26749 invoked from network); 10 Oct 2015 04:47:43 -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,HTML_MESSAGE autolearn=ham autolearn_force=no version=3.4.0 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=rOsgXyiErm03/KjSwRi4HkpiNjOeYLWV4Q1H4W4DV6A=; b=NNoNciltnyqjNB3tkPEFHxUUgGcWXPnsFjno+TqyPMIXk1jl4O8wKgudL8hVLO0iGg ZWE9mfnWZYRtStKsGXrdnWV8AStrH97JTIZYk2gb4OBMOnzVsy8H1+yrjmpJbhwEvv9g zNg7zzcgNjahUaJdF6DovLqz9a4+CTVrO4ZWuVtTKIVisjkrvXhyObnrWQxCkfrsX4tB 1nDpmoF78tzbpARPQE9xOTjHvmuj64OjSo/Sgss11fn3eyF1X4V2/Ua6e5GkFRZW/BO6 WaXX2wAUHdguqqVqmLeGtIhTajOrqOVyLm8nQCr5uK8fW7T7qbPK792U7/czldylSxxz vnKw== X-Gm-Message-State: ALoCoQnEtjo/cy1JbIfaHDx/Ms9GvAryYIySycrPbwE/xepT8qFXuxxA7nLvX6i+G7oXkgxaLs// MIME-Version: 1.0 X-Received: by 10.55.198.152 with SMTP id s24mr19580185qkl.1.1444452461379; Fri, 09 Oct 2015 21:47:41 -0700 (PDT) In-Reply-To: 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: Fri, 9 Oct 2015 21:47:41 -0700 Message-ID: Subject: Re: what is truth? From: Kurtis Rader To: Ray Andrews Cc: Zsh Users Content-Type: multipart/alternative; boundary=001a114964e4db47aa0521b8cb75 --001a114964e4db47aa0521b8cb75 Content-Type: text/plain; charset=UTF-8 On Fri, Oct 9, 2015 at 9:16 PM, Kurtis Rader wrote: > The redirection characters "<" and ">" are apparently still interpreted as > such even within a "[[ ]]" construct. Or something very similar is > occurring. Replace the dash with "x": > > [[ '<->' = ]] && echo true > > You'll get the error "zsh: parse error: condition expected: '<->'". If you > quote the right-hand side of that expression you get the expected behavior > (with the original dash or the "x"). If you want to literally match "<->" > then put it inside single or double quote characters. > Oy Vey! After seeing the responses from Mikael and Bart I realized that I did not know about the pattern <[x]-[y]> as documented under "Glob Operators" in the "man zshexpn" documentation. Which itself surprises me since I've been a programmer since 1978 and fell in love with UNIX a couple of years later. This reinforces my belief that zsh, and to a lesser degree other shells such as ksh, have enough idiosyncratic behaviors that they should not be used where non-trivial semantics are relevant. -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank --001a114964e4db47aa0521b8cb75--