From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26148 invoked by alias); 27 Oct 2015 21:20:13 -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: 36991 Received: (qmail 8970 invoked from network); 27 Oct 2015 21:20: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=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern_com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ZhA6OjOsGwT+TmM6+vMzKUkrIakXvSUR7ePNMR6kyxw=; b=oU0jQqpRWYMXd+W4snxH5bDOvGeOF3FIxpm+4nSi1E6e6FZVtgGwHWbNJ5ONEHlN2W 8q3lrzLH8ztT0w/gymoxWpvu9rw11QUkDLZ9Et1rz91t5yVWU8HBLEb4swJ370IINaVq 81xhuGEWaxe5H47nsi30GC9uF7Y48y/Jzry3VTJBfM4Oc7VldCn7mEEZFA/R57A/iE3A 7pvD9J48XyB25knq7aB/PVm9MyvTgayNECW2GnXChcnlN5iCPhECxLzogl7XgX4UvumR CtiKgv2vTNNwAgFW/vU63cQVP4dppC+SvfIwpfuMzwMCfKs76uz49udjsiNjvOyLPDfi Gzrg== 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=ZhA6OjOsGwT+TmM6+vMzKUkrIakXvSUR7ePNMR6kyxw=; b=d9Eejyu6cU2vqroLtOK+2Kfm7D60Piw3c+/1aoycAAP88HyEyRGYjOjMrmEN2WKmoO /0zIyTMWPTmQUmRhSz4KvikNMt5NkrMcc5uEurcq5z3CztqHpOxQ4eNgqWcui1EfP0Ot 0G/t7LQUdJ/JDlXEZ9oLsrbDTPrRc2oyPo1NegZO8Zz3IJmeFFeYCPsBXdrz1ezK/K3O TmGOQdtw91zwkTqfAvVtsm3CME0N0SW0PdWPD8oFUYIB6m/Gne/1ciqO4YdwiTo21riW NqigzNtkIEnqjUzpEhBlo4CaZW8cDjj+1DUmchLuDiz8RiC87wuLzWXpFR1tZtTsoi3f mskQ== X-Gm-Message-State: ALoCoQmEcz8OPQeTsBtAqc36VS6Ngjq0NPJaGVqngwwVqF3lOBBf+A9kraN4Dt0pG4+2WBi7tRJg MIME-Version: 1.0 X-Received: by 10.194.24.70 with SMTP id s6mr29622122wjf.135.1445980810749; Tue, 27 Oct 2015 14:20:10 -0700 (PDT) In-Reply-To: References: Date: Tue, 27 Oct 2015 14:20:10 -0700 Message-ID: Subject: Re: [PATCH] Index of element after width of characters From: Bart Schaefer To: Sebastian Gniazdowski Cc: Zsh hackers list Content-Type: text/plain; charset=UTF-8 On Tue, Oct 27, 2015 at 10:18 AM, Sebastian Gniazdowski wrote: > y:width: > Index-post-width: for strings substitutes index of first character that is In the patch file you attached, the doc refers to x:...: rather than y, whereas the code uses 'y'. I do find this to be a pretty highly specialized operation, though, and I'm not sure I like the idea of using up more of our limited number of remaining single-character flag letters for it. > The code works, however not in the test that I commit. Wonder why it > works in scripts and at prompt but not in the test? Did you make sure that the LANG and or LC_* etc. environment variables are set correctly in the test script? Also this test should probably be appended to D07multibyte rather than have its own new file. (That would ensure that LANG etc. are properly set, too.) I don't find a test of the (m) flag anywhere in Test/*.ztst either, for that matter -- hard to decide if this belongs in D04 or D07 but I tend to think the latter.