zsh-workers
 help / color / mirror / code / Atom feed
From: Sebastian Gniazdowski <sgniazdowski@gmail.com>
To: Zsh hackers list <zsh-workers@zsh.org>
Cc: Bart Schaefer <schaefer@brasslantern.com>,
	 Peter Stephenson <p.w.stephenson@ntlworld.com>
Subject: Re: Cores almost on demand in patcompile()
Date: Sun, 9 Oct 2016 12:15:39 +0200	[thread overview]
Message-ID: <CAKc7PVB=485r3nRz_pP3A-k-oq2pOp5qYUK7pE1VEApXb0pR1g@mail.gmail.com> (raw)
In-Reply-To: <CAKc7PVCAR2yTJGgdBbvTp=mBC0ZrXcVWW0DE_U26TezSTNdd=A@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 311 bytes --]

OK – here's minimal test case. It contains error in first filename,
but the core was triggered anyway, in each run of two that I've done.
Two files, input1.txt, input2.txt, with the problematic strings, then:
    MATCH=""
    buf="${buf#(#m)$word}"

in test.zsh

Best regards,
Sebastian Gniazdowski

[-- Attachment #2: input1.txt --]
[-- Type: text/plain, Size: 442 bytes --]

\x01glogB\x010\x01/Diff/\x01/Users/sgniazdowski/github/zsh-navigation-tools.git\x010a87c8044c1c6677a38ccdabd36334cc2aaab496\x02\x06"znt-tmux.zsh ā€“ initial commit of skylite21 submission"\x19 \x01glogC\x010\x01/Same-files\ commits/\x01/Users/sgniazdowski/github/zsh-navigation-tools.git\x010a87c8044c1c6677a38ccdabd36334cc2aaab496\x02\x05((2 hours ago))\x19 \x01glogD\x010\x01/Same-author\ commits/\x01/Users/sgniazdowski/github/zsh-navigation-tools.git\x01Sebastian\ Gniazdowski\x02`Sebastian Gniazdowski`

[-- Attachment #3: input2.txt --]
[-- Type: text/plain, Size: 169 bytes --]

\x01glogB\x010\x01/Diff/\x01/Users/sgniazdowski/github/zsh-navigation-tools.git\x010a87c8044c1c6677a38ccdabd36334cc2aaab496\x02\x06"znt-tmux.zsh ā€“ initial commit of skylite21 submission"\x19

[-- Attachment #4: test.zsh --]
[-- Type: application/octet-stream, Size: 133 bytes --]

#!/usr/local/bin/zsh-5.2-dev-2

buf="$(<input1.txt0)"
word="$(<input2.txt)"

MATCH=""
buf="${buf#(#m)$word}"

echo "Processed: $buf"

  reply	other threads:[~2016-10-09 10:43 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-09  9:00 Sebastian Gniazdowski
2016-10-09  9:16 ` Sebastian Gniazdowski
2016-10-09 10:15   ` Sebastian Gniazdowski [this message]
2016-10-09 16:09     ` Sebastian Gniazdowski
2016-10-10 15:31       ` Sebastian Gniazdowski
2016-10-11  2:46         ` Bart Schaefer
2016-10-11  2:53           ` Bart Schaefer
2016-10-11  6:51           ` type-checking for metafiedness? (was: Re: Cores almost on demand in patcompile()) Daniel Shahaf
2016-10-13 10:22             ` Peter Stephenson
2016-10-13 13:46               ` Bart Schaefer
2016-10-14  6:36                 ` Daniel Shahaf
2016-10-14 16:53                   ` Peter Stephenson
2016-10-14 17:28                     ` Bart Schaefer
2016-10-14 20:08                     ` Daniel Shahaf
2016-10-14 23:04                   ` Oliver Kiddle
2016-10-15  8:30                     ` Daniel Shahaf
     [not found]                       ` <CAH+w=7bONQfKge=kWwFasKNXSu7510d8c+1aoYEeyUbozf_P7A@mail.gmail.com>
2016-10-15 18:35                         ` Fwd: " Bart Schaefer
2016-10-13  9:43           ` Cores almost on demand in patcompile() Peter Stephenson
2016-10-19 11:14             ` Sebastian Gniazdowski
2016-10-19 13:14               ` Peter Stephenson
     [not found]                 ` <CAKc7PVBhHFUWbMobAeDptgXmZ=S6RVsuNB7Qwsq555Srya_5qg@mail.gmail.com>
2016-10-20  8:56                   ` Bart Schaefer
2016-10-20  9:32                   ` Peter Stephenson
2016-10-20  9:56                     ` Sebastian Gniazdowski
2016-10-20 10:18                       ` Peter Stephenson
2016-10-20 10:30                         ` Sebastian Gniazdowski
2016-10-20 10:42                           ` Peter Stephenson
2016-10-20 10:56                             ` Peter Stephenson
2016-10-20 11:03                               ` Peter Stephenson
2016-10-20 11:09                                 ` Sebastian Gniazdowski
2016-10-20 11:23                                   ` Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAKc7PVB=485r3nRz_pP3A-k-oq2pOp5qYUK7pE1VEApXb0pR1g@mail.gmail.com' \
    --to=sgniazdowski@gmail.com \
    --cc=p.w.stephenson@ntlworld.com \
    --cc=schaefer@brasslantern.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).