From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4445 invoked by alias); 29 May 2015 21:32:14 -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: 35333 Received: (qmail 7277 invoked from network); 29 May 2015 21:32:12 -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:cc:content-type; bh=/7ZaeWQNpG9iXnMJKO9UFw7NRsg9ZKvcQkc2ltt0wCs=; b=XaAYG5J3gRN/Mu0C+6voXhYofIJHwzc7khh8BSlj0cZY9dv6eTYlGIqg/d1w2ER+VA zV0zARELOt+qA5mRGiJSIlBhGFg6YBfTYNAMNC/1pqElqVQd//MbxOgoQYK3lwg5vtgl 9RQhBajUklwMnjzNS81JpDhoE1kyykl5hn1H3PquKpW9hsXX+ME5O5MOnVBGQsot7sA3 2mkuAkuWsWhLoP/rpMFiNTvwvjcda4IvOTGXE1hIvbpUHazwlbjtq0D1BAMklWdteHpo S/qxdMQy1GFgm+C28Ts/KS3hBZGTKIxXbzi1TE/Xw+ZlrNLuDEbgnyljjs30yFST8TPP X1TA== X-Gm-Message-State: ALoCoQnN0MMqzHk5gSlbN6HIwDuIbVP74TCJeUmgzL0PVAmrdwOMoVl/X5pus1qaMoJmeKjK0Mf6 MIME-Version: 1.0 X-Received: by 10.180.84.170 with SMTP id a10mr10508288wiz.52.1432934685500; Fri, 29 May 2015 14:24:45 -0700 (PDT) In-Reply-To: <5423831432932500@web1o.yandex.ru> References: <55676FB1.9080401@inlv.org> <20150529160237.6f329071@pwslap01u.europe.root.pri> <5568BF27.80806@inlv.org> <5423831432932500@web1o.yandex.ru> Date: Fri, 29 May 2015 14:24:45 -0700 Message-ID: Subject: Re: Arith parsing bug with minus after $# From: Bart Schaefer To: ZyX Cc: Zsh hackers list , Martijn Dekker Content-Type: multipart/alternative; boundary=f46d041827e6ecc63705173f1ac3 --f46d041827e6ecc63705173f1ac3 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On May 29, 2015 1:54 PM, "ZyX" wrote: > > But later it explicitly says that not enclosed in single braces may only be names or single-character variables. I.e. $#- is ${#}-, $10 is ${1}0, = =E2=80=A6 Yes, but $#name to return the length of the value of $name is already a zsh extension, so unless we're in some emulation mode, treating $#- as the length of $- is perfectly reasonable. I vaguely recall having a similar discussion about the meaning of $## ... Related, is ${##foo} parsed like ${#name#foo} with an empty name, or ...? --f46d041827e6ecc63705173f1ac3--