From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9718 invoked by alias); 9 Jun 2015 02:24:53 -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: 35421 Received: (qmail 4807 invoked from network); 9 Jun 2015 02:24:48 -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,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.0 Message-ID: <55764D2A.2040301@inlv.org> Date: Tue, 09 Jun 2015 04:19:22 +0200 From: Martijn Dekker User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: zsh-workers@zsh.org Subject: Re: In POSIX mode, ${#var} measures length in bytes, not characters References: <55738EFE.1050805@inlv.org> <20150608094420.1ce01d90@pwslap01u.europe.root.pri> In-Reply-To: <20150608094420.1ce01d90@pwslap01u.europe.root.pri> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Peter Stephenson schreef op 08-06-15 om 10:44: > With MULTIBYTE always on when available, the "EMULATE" flag becomes > redundant. I should have guessed there's a shell option for that. Still good to have it on by default. Between that and POSIX_ARGZERO, I've found (so far) that the following puts zsh 5.0.8 in the most fully compliant POSIX mode: emulate sh -o POSIX_ARGZERO -o MULTIBYTE Thanks, - M.