From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27467 invoked by alias); 29 Mar 2015 04:19:21 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 20042 Received: (qmail 2402 invoked from network); 29 Mar 2015 04:19:19 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version:content-type; bh=o6BYfWneGtNKysZrazuGJTYrSf+X3qceQnzteLZwu1Y=; b=DWDY1ruaMuTQOKk7/EoiXxCo9SlK3YMrCkpZZSAH/vetMTf+pMJ25XJXpJB11f1v2S eT0oLtJHD7NFNyLG9ralNzrpM+T6mpL3r0aVEZ6BywOx5mghBARvi/a3f01Tyiu6JZt5 FdjaJ9ZpNpkUBCnbzqj9nDpKKyyzoNyk5wcb4maKxBpz9a97tNMyrZNd/OqFkdnQFULc StLBx9DXsZE0YYypBPuIV3kJAQjZvhhrMdKu7/131KU8UvSfh6nOyzfGcckUWuZcSaOg UvQc8lzb6zmcPfOgcHwuhmhVD+fJQmw4WhhPim2V8u5aSFuWWhgtnbfUQKGOFk1fPkyp w+WQ== X-Gm-Message-State: ALoCoQmm5onzNApevtR72c2eOi+5H4eac3Sz44qKjOhA3zNov3nvyCvhgJcNew9A4RM9GTA6edwd X-Received: by 10.60.146.231 with SMTP id tf7mr7694423oeb.41.1427602756532; Sat, 28 Mar 2015 21:19:16 -0700 (PDT) From: Bart Schaefer Message-Id: <150328211913.ZM6831@torch.brasslantern.com> Date: Sat, 28 Mar 2015 21:19:13 -0700 In-Reply-To: <5517402C.1000005@gmx.com> Comments: In reply to Eric Cook "Re: Seeking feedback word breaks and aliasing of tokens" (Mar 28, 7:58pm) References: <150327090501.ZM4166@torch.brasslantern.com> <5517402C.1000005@gmx.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@zsh.org Subject: Re: Seeking feedback word breaks and aliasing of tokens MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Mar 28, 7:58pm, Eric Cook wrote: } } It personally looks weird to me on first glance and i wouldn't expect it } to work like that, but i do not oppose the change. Sorry, could you clarify which thing looks weird to you? } Also, compsys doesn't seem to like it currently: } alias \{=echo } { # segfaults zsh currently (not sure if someone else brought it up } in the original thread) Again I'm not sure precisely what "it" means, but *without* my patch from workers/34781, I get this: torch% alias \{=echo torch% { zle_tricky.c:668: BUG: 0 <= wb (-3) <= zlemetacs (1) <= we (1) is not true! Program received signal SIGSEGV, Segmentation fault. (gdb) where 3 #0 0x080cdb32 in ztrsub (t=0x8b48a35 "", s=0x8b74001
) at ../../zsh-5.0/Src/utils.c:4491 #1 0x081334ab in docomplete (lst=0) at ../../../zsh-5.0/Src/Zle/zle_tricky.c:675 #2 0x081328a9 in completeword (args=0x8171b60) at ../../../zsh-5.0/Src/Zle/zle_tricky.c:232 (gdb) up #1 0x081334ab in docomplete (lst=0) at ../../../zsh-5.0/Src/Zle/zle_tricky.c:675 675 if (viinsbegin > ztrsub(zlemetaline + wb, zlemetaline)) *With* 34781, there is no "BUG:" or segmentation fault. So I think that is justification enough to commit it, and we can revisit if necessary.