From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18577 invoked by alias); 30 Mar 2016 18:06:11 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 38225 Received: (qmail 18237 invoked from network); 30 Mar 2016 18:06:09 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:to:subject:mime-version; bh=f0XWUbLjfmrV4CSVW6KWc9pkFGGjtwzOlSGQRLdcVRU=; b=I0wN7pmXWpNNWsXs69VSsJ31SRYdpATUxuRB+aBVY1Oe+kppdkLfdUyC2CTmo/yC8P Wrx/NMq7dd2w0W+XPrFNfj5snbpT0utNWG9IbQld5mAeXx+pG/s4GcqaRyT7VadeWHF2 t42J56mlzLooD55rPW+aLO1fHxjXPpBgHHCUcIfMm8EOAG3FIbc7zYkRPFrbp+2IOUWI zKB40jOOXdGKQGsMC94JSbaYxUZpbxIoCTMrD02AY/QzR9dfAGsXmgXcSU1cljE5MeYJ B06Ukxp7653RQtZbU5WNJ0vzsCVaOGKo5hUOl/ecJDJVKff6BFyIJVBGAYWLKhn0+oE5 v7CQ== 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:to:subject:mime-version; bh=f0XWUbLjfmrV4CSVW6KWc9pkFGGjtwzOlSGQRLdcVRU=; b=cLzD7g7cQwYRxhRUZEJmucH2LNBZrTqANZLr3A6mU0hDr2tUTvOAnGLu/gyfPXErc7 U8II9viQT5kE9EbyLNoJZ786E5ADKMZAgiaqFiGZHCRKSpphv3R0FzWugzrcfze12gw2 V98FtiThMXvamFBJ9rWdUeyFeQD6GgP5ZiZlOz22+qL1ck5dw+29QMyFxIy48iRit+KN TqJukkCU/1yKuDLObUEy/WSIUHadx5r5hudHeN/6xWZ9U6vAwbRvUVAlwv7x9ecDdQuu edLB9w6Mqt591zKvPSjK+g2Fdn3qvg6lzH09yU4C3PJjomB0RYT5FcGPu+Savp1iNmQ1 1Ing== X-Gm-Message-State: AD7BkJLb+DmXbAC/F75aLC3Ltrcf4+A0gvhPnxBzan315Fv2khr6j62nu23KBRB+ihs9Mg== X-Received: by 10.66.146.164 with SMTP id td4mr15350430pab.47.1459361165695; Wed, 30 Mar 2016 11:06:05 -0700 (PDT) From: Bart Schaefer Message-Id: <160330110652.ZM1432@torch.brasslantern.com> Date: Wed, 30 Mar 2016 11:06:52 -0700 X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Completion in empty double-quotes generates error MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii About six years ago, I wrote: } If I invoke quote-and-complete-word via execute-named-command on an } empty buffer, I get this: } } schaefer<525> 11: ../../../zsh-4.0/Src/Zle/zle_tricky.c:661: BUG: 0 <= wb <= } zlemetacs <= we is not true! } } The same error does not occur when invoking it via a direct binding. Well, now it DOES occur when invoking via direct binding. The error message has gotten a bit more informative. --------------- torch% autoload quote-and-complete-word torch% zle -N quote-and-complete-word torch% bindkey '\t' quote-and-complete-word torch% ls torch% ls 10: ../../../zsh-5.0/Src/Zle/zle_tricky.c:658: BUG: 0 <= wb (3) <= zlemetacs (2) <= we (3) is not true! "" ls "" (listing here) --------------- The "10:" would seem to imply that the error comes from the first call to "zle complete-word" in quote-and-complete-word, but if I simplify the function down to just that I don't get the error. Further experimentation reveals that starting from a clean "compinit" I can generate the error by completing inside empty double quotes" torch% ls "" torch% ls " ../../../zsh-5.0/Src/Zle/zle_tricky.c:658: BUG: 0 <= wb (3) <= zlemetacs (2) <= we (3) is not true! ls "" If there is even one other character inside the quotes before completing, no error is reported.