From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4013 invoked by alias); 9 Jun 2015 15:37:11 -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: 35424 Received: (qmail 23843 invoked from network); 9 Jun 2015 15:37:08 -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.4 required=5.0 tests=BAYES_00,HTML_MESSAGE, HTML_OBFUSCATE_05_10,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=xka7ZLwlhaPgQsSCQTgi9VJhCUNymRvkehxhYRIoFAw=; b=VTZ5/AGZQ6YtxIhMttRb9B05HYnu/L/QkZsJ4pgaSVNJ62LRUy08n57Tk9rs9uSyJ0 vrTw9YdUMi3BEr2pQ5UEXGgOctKcqxSkpSNtDfbqLwXnHE+ZcxwNp9H6T29iwOfeLGuZ bZecMUndgRmYo+lwsGkupDKmfJFP9TaRAm+JftEKkajADq4B3wSxvi2Hqyi7PqFxgUeI uXJG+0n/+oZDbaUfO1AMdEBOE3tguoA/Qur/palVrQikox4lFOV9ZccPrjiHX6NjHUvy svLbuVShLccMjQZIdymAyob4c4WCeBddFrB2j6kyIVJu5H8+hg/DVLMU1wrE91FunX7c xzkw== X-Gm-Message-State: ALoCoQmoPFE4LPxgD9XL0Y7Jjn5rCC5wowBd4INjZtG/jortCSGeqpEkhNDUKS6qNp/ew37BwzS/ MIME-Version: 1.0 X-Received: by 10.194.61.50 with SMTP id m18mr43541876wjr.135.1433864225343; Tue, 09 Jun 2015 08:37:05 -0700 (PDT) In-Reply-To: <20150609093543.4f463867@pwslap01u.europe.root.pri> References: <55738EFE.1050805@inlv.org> <20150608094420.1ce01d90@pwslap01u.europe.root.pri> <55764D2A.2040301@inlv.org> <20150609093543.4f463867@pwslap01u.europe.root.pri> Date: Tue, 9 Jun 2015 08:37:05 -0700 Message-ID: Subject: Re: In POSIX mode, ${#var} measures length in bytes, not characters From: Bart Schaefer To: Peter Stephenson Cc: "zsh-workers@zsh.org" Content-Type: multipart/alternative; boundary=047d7b66f8e7cee12c0518178768 --047d7b66f8e7cee12c0518178768 Content-Type: text/plain; charset=UTF-8 On Tuesday, June 9, 2015, Peter Stephenson wrote: > > > I can't remember why POSIX_ARGZERO isn't on, or even if there was > actually a reason. > > The doc actually does explain this, for once. For compatibility with previous versions of the shell, emulations use NO_FUNCTION_ARGZERO instead of POSIX_ARGZERO, which may result in unexpected scoping of $0 if the emulation mode is changed inside a function or script. --047d7b66f8e7cee12c0518178768--