From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 31090 invoked from network); 12 May 2021 06:45:44 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 12 May 2021 06:45:44 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1620801944; b=alm6YbriSbSgwbHDyShO7UaCvBtbxVwT0ZSEJCHpGjyhe/y+r+rxq49/ywAmMladc4PZ+GQPo7 +wu1HuWx29+xGFjYhr4ETmSc6bVFLgSfumNG0Z5+DU8svpEvu8PHwlsSjhFA2jFcWqR8n0CqOK AWjzeSV++HA1E2F3q4liopbVZoooWap+MWlqJoIK3WZ9I5rP8UMYMkgANZi9R2YcX2a/w89eZG edjKAARUfPoa+3SwUfXkE4jDNIf5MgBflPQV+yuT8n0Fo4FR3zjqFgnwO11kgsO/tl+Jw9kk+/ Lc5YhshJ466zflQVibjq1KeTlGlrlmHbjFifDJrDN98tQQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-lf1-f46.google.com) smtp.remote-ip=209.85.167.46; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1620801944; bh=VWeVmO+msfQm+3tMGwsA1G95dCA5zLBsgk/Lr6gANdY=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=rCnQwtH5fsTbsAol9K8lkdDto3bkexklLWpnQ1VVtNc7TCaHnvcBgjI/pg+ril27Ewiw793356 mCUCR2kTe2X/0DzypN6Vv4pZR2El79EDkZTbVTTVbDeOFOBnAkOS6xcft9JEQPsCL600lHOK8T q4xu1ZLhlM6Mnbc8lVPawUsQiMHz4zvtFj9YC7xszq3S/DMbXmNr3j5KktTTEOOSKkd+vWPCdi BgypJR3V9hTel5wNgbT7gLRKnzX4wfdpzf26u860jS0I4kvWPPbRr92mjkel6C9pypGCrSFhGJ gd7dUgfPUZtXw0SGKjSEUF7kPSxSGNV4sbBln9cGXQ7Nhg==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=VWeVmO+msfQm+3tMGwsA1G95dCA5zLBsgk/Lr6gANdY=; b=qyeXPF/yp5lFVU92/UPkpzlUqU iluHvr8UbT+jE7IHCbtxHW1EViiy5Xom0c8PmEuMf/FBFYBzkdqSiaIcZh4Djbm5c3xmvgkH5LaBC qfZ3kraJ38Zo5Rqge31KuoM5uo2l1b1wVe0hRblfE2ic9OvjJ7PtyS8O9Xi3mcWllllaLSvPYWUvR yIq9luHSPSDKWckHjwSvdyxgm3YxZmXLtZMA8GRH5MB1RG/5UlDgFwFs20UZ8x71iU/m3rkYOl0Rb AANOTplhr/8WIIBK/8tUkXhCQIhtZ3whU3nyXMIyxFqBA7zHGFV5VRAFQbzwaEjL8cSl7XmGJ1RNE 1DkrN1aQ==; Received: from authenticated user by zero.zsh.org with local id 1lgicp-000Bdu-KW; Wed, 12 May 2021 06:45:43 +0000 Authentication-Results: zsh.org; iprev=pass (mail-lf1-f46.google.com) smtp.remote-ip=209.85.167.46; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-lf1-f46.google.com ([209.85.167.46]:35817) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1lgibH-000BIg-EC; Wed, 12 May 2021 06:44:08 +0000 Received: by mail-lf1-f46.google.com with SMTP id x19so32174495lfa.2 for ; Tue, 11 May 2021 23:44:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=VWeVmO+msfQm+3tMGwsA1G95dCA5zLBsgk/Lr6gANdY=; b=scbozCoNMrPmJfvpAA+OLr3NioiLqzMarE+5Tv6AtLfL/S7ceGT1LDZI6RQvpv0v2n Ovm6RuQ4Hn4RX+XVw2IMlVqj2R8x+aDc26VzT//oAiFhcrccRmVZuEsG5aoi00Sh7+bd uqQboUPwXYDMXUDcvywE/oCjhyzpKtBFM5dvzvdmKfqiH3sZS8EF2a1zOiAK7GBGqtZ4 rD3fAslpXSmLiY6Q85kiauFqavk5D7TkYxKCBP0nUHdTF3lhvVXcgB/WKdZaybbu0wHk 03Fbq/79zXhEdUWWDn6dVY2cGSHNiC3StwtMsvKYl4KJosLl1ebK+AEEe0PhH3ySKeNp kTTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=VWeVmO+msfQm+3tMGwsA1G95dCA5zLBsgk/Lr6gANdY=; b=H07OQnsbscPnEq7MF4QYHNNiwvEIMn9be5+M4ckL/yTJn4NRPO7sSfkR9JKQ+r8LjS +asv7jbWfSb9Y+0A1jr3rptAypWs+vuR/0ZuLK95EnP/v7l5QP3Aq0FpyqfNipjwNeQJ Ue+zhfy8PJfRXPWgXBdFGEgaVhQ2RliUklyGKXjBTSB3prDOI4SBu/+PIaCaFwKUHCOq Kj3ft2vqnBeMe092xltlzDJ8aLAYTj+gNX7fkMcxI9Z/lUFo+4xmoc7Pd3AcLVyMjYD/ nD65nGJhBJEXkbxTHE+5RqiEtHm60GvsZifsSSJF1b+j6gyYH6HAJ2LUlPwDY2iVCBS7 4luA== X-Gm-Message-State: AOAM530LGJksTXaPF92LzYrgHGCg86vOGHEmZoAdnBzsq2MeLCg6kun/ AUu6P/EHDl39XonKownwmjrGXoP+LkxFljRrGeYOvHUGGKUW6A== X-Google-Smtp-Source: ABdhPJwR//wuDhXT+wZeNQJjWgWp/4ezEuHzXDU6l0AtsKuYX8Fia1/sGl4t4G1R2g7ugQxEO8tkLFnNEmZGlRoTVCY= X-Received: by 2002:ac2:5e64:: with SMTP id a4mr21728397lfr.307.1620801846267; Tue, 11 May 2021 23:44:06 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Marlon Richert Date: Wed, 12 May 2021 09:43:30 +0300 Message-ID: Subject: Re: [BUG] Weird _expand & _complete behavior for $parameters in "double quotes" To: Bart Schaefer Cc: Zsh hackers list Content-Type: text/plain; charset="UTF-8" X-Seq: 48823 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: On Tue, May 11, 2021 at 10:40 PM Bart Schaefer wrote: > > On Tue, May 11, 2021 at 10:32 AM Marlon Richert > wrote: > > > > On Tue, May 11, 2021 at 2:05 PM Bart Schaefer wrote: > > > > > > I can't reproduce this on either Ubutu or MacOS, nor either with or > > > without my completeinword patch from the other day. > > > > Here's the test as a patch, in case it helps you reproduce it. > > Ah, I didn't get before that you'd added an entire new test case. Sorry about the confusion. Yes, I added a new test case, because I saw this happen on the command line, but I wanted to make sure that A) it wasn't just my environment and B) I presented the bug in a way that you could easily reproduce it. Next time, I guess I'll just send it as a patch in the first place. :) > There are two things going on here: > > One, complete-in-word handling of quotes has several problems, which > I've unsuccessfully wrestled with once or twice before. Note that my test case does not set COMPLETE_IN_WORD and setting it doesn't appear to make any difference for this case.