Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] PCRE/NUL: pass NUL in for text, handle NUL out
- X-seq: zsh-workers 41312
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: [PATCH] PCRE/NUL: pass NUL in for text, handle NUL out
- Date: Fri, 16 Jun 2017 20:10:49 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=GsRigbZhGn/jNB076GiXaZMi2D9uer7Fy5WFJCUG//8=; b=cf8yX1/dZkrxANVTNo0mLAOGomoQc1QIpPiDxHcXIYW4QFGDiF5ar/lwXHr8rRNAUt 9Wf1SfMm+JRB9kve3kzseqtAeKnmJ7ViEP/gy6c3nM7F536ujn6supRDScfp1Q5zCzCN kY6RuxRysnT9lsLFGFZgIt+dga/eefNK5wa49rvk0U5Y5yqJRTI9VppbhYqDEdzB4IqV zWxPQ3p6Opz9TxJV2Z+YeFguXKU72As0Xz1WLwZ1bKzP2ruSiF8wu666TXqLgwR2G4KA lqLkd+FvmqGFSEBufYicu3m9B/KhOcOtJbps3QgHSQ8ME0giCtdae0+MJlRmVoBmkvM6 Ipdg==
- In-reply-to: <20170616064129.GA19469@chaz.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: <20170615204050.GA27003@breadbox.private.spodhuis.org> <20170616064129.GA19469@chaz.gmail.com>
On Jun 16, 7:41am, Stephane Chazelas wrote:
}
} Solution for now in zsh is to escape like:
}
} [[ $x =~ "\b\Q${word//\\E/\\E\\\\E\\Q}\E" ]]
Hmm, wouldn't "\b\Q${(b)word}\E" be sufficient there? If fact if
you've applied ${(b)word} do you even need \E and \Q ?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author