Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Feature request: #a (approximate matching) only for spaces
- X-seq: zsh-users 21307
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: Feature request: #a (approximate matching) only for spaces
- Date: Fri, 19 Feb 2016 07:21:19 +0100
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=n+V4FEE0QDEDBIMLeaWZJUrWIikdWgziHSMQUFcPnLI=; b=G8VyWNueiRL7TN2KKIRJyhFKvsxN4jK/jUVBPvLnvJmckPKBhdVUsOT0IPhHgi9xr4 fS4j4KcwC/fx7f3E/02cMPi2uIs1wVBoSRfumPQF9nzRPiXJbtnpjNRmvXIka9zz8tKv 5O2YPN/NadJxqf5xKhfom6DOnl4bZ0Mk8Yutet7ViHNT+SRgB3HBlYem+tE2OtFeNICD kQsCT3fgyOuwgeqc4ysiUUuzn6nRJ08FKdP5EfKanh5DrwfCkYXsKH3ivZhKo1Iote2V fYM1WQ6QfwKGttO+jOph31ZhAc/Kj4eYR0OCiSXUhVxRR8Ywxyye4MmgaOCQ1HR1Glci FPZQ==
- In-reply-to: <151207002253.ZM32539@torch.brasslantern.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVATpn35B0mNzKQQFCpAgKq6F8C98nCFb0OfXMobJNi6Ow@mail.gmail.com> <CAHYJk3RgHN+WZs-57dOSuNJ2KQVJFEMK3GYOeXKktbvZ6ba+Ww@mail.gmail.com> <151207002253.ZM32539@torch.brasslantern.com>
On 7 December 2015 at 09:22, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> Amazingly, you can write that as a one-liner, if you don't count the
> necessity of the setopts and declaring the parameters:
>
> (${(j:|:)~${i::=1}+${${:-$INPUT"${(@)^${(s::)INPUT}/?/}"}:s/(#b)(#s)(?(#c$[i++]))/$match[1]*}})*
Can be resulting pattern put into $parameter for later use by $~parameter?
Best regards,
Sebastian Gniazdowski
Messages sorted by:
Reverse Date,
Date,
Thread,
Author