From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24017 invoked by alias); 29 May 2015 18:09:23 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 35329 Received: (qmail 23204 invoked from network); 29 May 2015 18:09:20 -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=-2.6 required=5.0 tests=BAYES_00,HTML_MESSAGE, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL 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:content-type; bh=36ubYld2SqF2awRsFzX8mi4AQ3hN2AlVUKXgb0N3zKg=; b=c9qak1IvaJ0iM7jt3bewLQWT6cICmSYD2dU5dmYSEzcuP0/GrBY7+lDzyqjg5TDmMi vVZtamCVn5lSDmk7kp/raTsWdSk/YRnZnOchlWEyhN5Skh8go8vHgO6bRQ5QyX1Yj8/j CYpENcMmjjPKpAUawSujtzORYv1lbS7y+ke89lxQne3a7dQ7+kmynDE3KQJc7KD5U0kI aDoYZ6EWlJxn6MO8bMk1OvtAzxWInMLKIIUVF4wZYbfT82kUD9JWPDKHa3E6YdesOH5p HYSfPutjDj/GHRYi7VAkHdYmf/zKBImNxyupU4cYX6ABTfS3+xRUQpAtkuwj098uWRRT W5RQ== X-Gm-Message-State: ALoCoQmgpfC6kBbYIbneCLsDG8TWKW5qid8shsEeyP8snKa6uZ9FxyBHV64idkFKe51pADzazFBI MIME-Version: 1.0 X-Received: by 10.194.109.36 with SMTP id hp4mr17191847wjb.4.1432922957955; Fri, 29 May 2015 11:09:17 -0700 (PDT) In-Reply-To: <20150529160237.6f329071@pwslap01u.europe.root.pri> References: <55676FB1.9080401@inlv.org> <20150529160237.6f329071@pwslap01u.europe.root.pri> Date: Fri, 29 May 2015 11:09:17 -0700 Message-ID: Subject: Re: Arith parsing bug with minus after $# From: Bart Schaefer To: Zsh hackers list Content-Type: multipart/alternative; boundary=047d7bf10a74e659f205173c5fc9 --047d7bf10a74e659f205173c5fc9 Content-Type: text/plain; charset=UTF-8 On May 29, 2015 8:02 AM, "Peter Stephenson" wrote: > > > The problem is the overloading of "#" --- the test to establish what to > do with it is trying too hard to resolve to ${#-}, which is a valid > substitution, because it hasn't taken into account that there are no > braces. So what you're seeing is ${#-}1. I think this actually was discussed on austin-group a few months back. My recollection is that zsh's behavior was deemed permissible and I therefore thought no more about it at the time. --047d7bf10a74e659f205173c5fc9--