From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1395 invoked by alias); 30 Jul 2018 03:40:02 -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: List-Unsubscribe: X-Seq: 43223 Received: (qmail 22408 invoked by uid 1010); 30 Jul 2018 03:40:02 -0000 X-Qmail-Scanner-Diagnostics: from mail-pf1-f193.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.210.193):SA:0(-1.9/5.0):. Processed in 23.522862 secs); 30 Jul 2018 03:40:02 -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,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_PASS, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: cgjosephlee@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:in-reply-to:references:subject:mime-version; bh=droYcY0JXmmaxU5k9emQWIUjG8v2HQ4VI2IwlrFp+cc=; b=uO9cH5Z3Xfieb0zRTHvQ0i7Wr+6l6dEtm3DIbvV/CJeJpYJgk5MyYvFne/RGFRtXfH odNT+HOGljJQBM6Cm7JPQVT1ydjfQ0SdOI8JJlPM3+qfvC4uSQAsPh97YKkCym/aCMTf vhtZa6mS7JyvDXPQUZN0/UXjT2xwE8bcVvyzVBudJVngqkXKY5stFXh2ob9VX8OM0vBK TfXgNMZ9HxOO/VvtiRUj8rjvajxt4bgIpws1/BF7CBUF8Wq+w0nbYYC1SeSNwt4CqyMO NVikg9FrZdeW4IXq/i/Uo/MmCtv7qxHR8Lo3U6ujolKLyCB88V0+AyHEFQwaEXX6L9hv 1/yQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:message-id:in-reply-to:references :subject:mime-version; bh=droYcY0JXmmaxU5k9emQWIUjG8v2HQ4VI2IwlrFp+cc=; b=PKTzbcKaW9gFndpuIlf2uXjPZ0wy8QMrLGtGjzX0qkOgEO2ho0f6FtgLo69XGw0l8i WRlwAsPUrKreYkHF8+LQmzD7Ipw7biWVuLB0EXzcdzfRHEy31F8T4m4tJo1AQNTYqhUu /7REd2o6u4Ewt0+x/DWFU4AfkeAAeNQmquMupaigaZpCwajw0kS+fy4po3H/TjsMTc+2 KNMIQD2Yh/UiKYHBjPChgYR0dQOXSGq969sPBWX4CpUQYOF3xsH7hbtTsXE9KwUjAVHY RwTXPpAJK7393NOJzkecESwlctyTGVg6XuucVrG9lSaQE3TYA8tl56oCpLVkdII9DpRI POBA== X-Gm-Message-State: AOUpUlEXaf8E+J18H/Gha5VEJ8PlHj9SmsQ19rNmO5XVDIUpKSDTfGnr L2deuc/+b5NS2WQsVeCsR/0= X-Google-Smtp-Source: AAOMgpdoiA/pnQBGv3CjDt0oaxejy2rJq2B4rC1cdd6z/MzOHiEMpqLeAXhinLQBcl2/Roer67mIKw== X-Received: by 2002:a62:d41a:: with SMTP id a26-v6mr16269234pfh.142.1532921976160; Sun, 29 Jul 2018 20:39:36 -0700 (PDT) Date: Mon, 30 Jul 2018 11:39:26 +0800 From: Joseph Lee To: Joey Pabalinas , zsh-workers@zsh.org, Daniel Shahaf Message-ID: <4af99243-5eef-47ee-8741-33ddad4e79c6@Spark> In-Reply-To: <1532764465.1091676.1455614720.39F6E608@webmail.messagingengine.com> References: <15e31c7e-4fc4-401a-8320-184f3914e572@Spark> <164debc1328.2878.115d99ba41c6f10c410cad5529ce8e09@gmail.com> <1532764465.1091676.1455614720.39F6E608@webmail.messagingengine.com> Subject: Re: A weird bug of grep completion X-Readdle-Message-ID: 4af99243-5eef-47ee-8741-33ddad4e79c6@Spark MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="5b5e8873_7c3dbd3d_5cdb" --5b5e8873_7c3dbd3d_5cdb Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Suplemnt previous report: the bug happens only when =60--no-group-separat= or=60 after =60--no-messages=60 or =60--no-filename=60 arguments, even th= e short form =60-s=60 and =60-h=60do the same behavior. Best, Joseph On Jul 28, 2018, 3:54 PM +0800, Daniel Shahaf ,= wrote: > Joey Pabalinas wrote on =46ri, 27 Jul 2018 16:34 -1000: > > On July 27, 2018 4:28:27 PM Joseph Lee wrot= e: > > > > > Dear all, > > > I'm using macOS 10.13.6, zsh 5.5.1 (x86=5F64-apple-darwin16.7.0) an= d grep (GNU grep) 3.1 packaged by Homebrew. > > > A weird behavior happened when completing =60grep --no-*=60 argumen= ts. > > > While typing =60--no-group-separator=60, which is a GNU only argume= nt, after another =60--no-*=60, the cursor stoped in a wrong place and un= able to finish completion. But it works right when =60--no-group-separato= r=60 goes ahead. > > > > > > Words might not be clear, so here's a demo video: > > > https://streamable.com/bxbdv > > > > > > I would appreciate any ideas, thank you. > > > > You ended up with your cursor one to the left of a - (you can see it > > within the block cursor) and that would cause completion to behave a = bit > > oddly depending on setopts. > > To clarify: the bug report is that =C2=ABgrep --no-filename --no=C2= =BB appends > a hyphen to =24BU=46=46ER but leaves =24CURSOR as it was, after the sec= ond =22--no=22 > rather than after the newly-added hyphen. > > There's no option whose name is of the form /=5E--no=5B=5E-=5D.*/, so t= his does seem to > be a bug. > --5b5e8873_7c3dbd3d_5cdb--