Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Possible bug with $~pattern, (#mi)
- X-seq: zsh-workers 36811
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Possible bug with $~pattern, (#mi)
- Date: Wed, 7 Oct 2015 17:28:04 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=yenv2+/6IMk5OcP0xG8JOzjHCMHTvqodZok/loqexp8=; b=CO0yHNdqxqmvPl3+7y6n0Tf7paHVucuNunUQC63bm9zHOrw5ediQi/UgvdHi9prt7F ppBNP5LaVENYP3fgKbw99rJGousLjtuPnobFOzAHRoXo8TGycYyLuPdrYJ1wxbxWla6R ETBkPwJvFdq5bu3r2+WV6B/N4rSg5twH0DdTfBujs1u0j2l8HbO8NMFnDG/B9iWbhZqR fwWWHpeAO7xceXBJKf5R7JA20+DO4xEwjPQ8y3612NMEAzitNKGxGr5Ttoohy/It3FzN qyRDP63ob/zprraHtIW/MNHnNUVyHCW2RUZtSeeE83JPMgtDzzLSBNvBZ7G5tnC/dTLC F56w==
- 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
Hello,
first one and third one are the same, but only first invocation works.
Not sure if second one should work:
# a="1234"; beg="#" echo ${a/$~beg(#mi)1/-}
-234
# a="1234"; beg="#"; num=1; echo ${a/$~beg(#mi)$~num/-}
zsh: bad pattern: #(#mi)1
# a="1234"; beg="#" echo ${a/$~beg(#mi)1/-}
zsh: bad pattern: #(#mi)1
#
Best regards,
Sebastian Gniazdowski
Messages sorted by:
Reverse Date,
Date,
Thread,
Author