Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] Index of element after width of characters
- X-seq: zsh-workers 36991
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- Subject: Re: [PATCH] Index of element after width of characters
- Date: Tue, 27 Oct 2015 14:20:10 -0700
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- 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==
- In-reply-to: <CAKc7PVC4LFGnBJau3gWuws3bTgc+zcnEE+o-B8ZmKEEWa8Kpog@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVC4LFGnBJau3gWuws3bTgc+zcnEE+o-B8ZmKEEWa8Kpog@mail.gmail.com>
On Tue, Oct 27, 2015 at 10:18 AM, Sebastian Gniazdowski
<sgniazdowski@xxxxxxxxx> 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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author