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=-1.0 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 15375 invoked from network); 23 May 2020 10:53:22 -0000 Received: from ns1.primenet.com.au (HELO primenet.com.au) (203.24.36.2) by inbox.vuxu.org with ESMTPUTF8; 23 May 2020 10:53:22 -0000 Received: (qmail 18480 invoked by alias); 23 May 2020 10:53:11 -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: List-Unsubscribe: X-Seq: 24868 Received: (qmail 13674 invoked by uid 1010); 23 May 2020 10:53:11 -0000 X-Qmail-Scanner-Diagnostics: from mail-il1-f174.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.3/25814. spamassassin: 3.4.4. Clear:RC:0(209.85.166.174):SA:0(-2.0/5.0):. Processed in 3.307341 secs); 23 May 2020 10:53:11 -0000 X-Envelope-From: pierpaolog@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.166.174 as permitted sender) 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=DvaKb9esjDbB+LcnSxCx/RAG80pSSC6P5OFqeVpKj8M=; b=ofhWMXz/LsZx06/QMAhJvDahuCncXyQYcVe3f5EPxKWyAHUlkH8fVA+rcVEawAw5xe ud3oJiJdYx3OBAjTyRjIWdC/sVmHKEb1PSxLH8cYUP/qmJJP8v7wflM4Q4j1vOGTkQPD WzZ+weq/xic0Z6wmTQPlg+imsF9x8H9MSJ0sKm2u+ZELxOAf0FeVCm6kG7sDLweXH6rr VB5eynKTWg7PcXnJG4sZUbD8958Iy5NGTyWnN2barnJtX5voCVCwSjpKbyjIop9DpVK/ zrzHQGt2MYOaXIF9Ac5huTnS+U73y2twTde9WvUFpJYcTeGq13atM+0HJh/I7IQfT1Yd xGVw== X-Gm-Message-State: AOAM5309nk4+0E/ctLPm1gxT2RNAPoG5fXIEmllezZ7Za+UKy0OpfyYP o5OW6hsRbmP7Q5QAAw7bVTmov530AjdDMc3QiH0Axc2H X-Google-Smtp-Source: ABdhPJzNMtr6twtLavWRK32zmVRYO5eDSHzz6Jw3RL+v/xnVkT9Cf/HGkO5lGzm3blas5QoepTYygrYQrJcpMJr/rXw= X-Received: by 2002:a92:d443:: with SMTP id r3mr17068693ilm.296.1590231154390; Sat, 23 May 2020 03:52:34 -0700 (PDT) MIME-Version: 1.0 References: <587B9115-0CAB-4379-986C-F2C22BEA8460@kba.biglobe.ne.jp> <06E9B8F3-66E5-442F-9036-DB326A338E6F@kba.biglobe.ne.jp> <0382AECE-3FF4-45B3-A9EA-1B532849D80A@kba.biglobe.ne.jp> <6F7E7CFA-43CF-4D21-A9EA-E64CA84A9EAA@kba.biglobe.ne.jp> In-Reply-To: <6F7E7CFA-43CF-4D21-A9EA-E64CA84A9EAA@kba.biglobe.ne.jp> From: Pier Paolo Grassi Date: Sat, 23 May 2020 12:51:58 +0200 Message-ID: Subject: Re: menu completion To: "Jun. T" Cc: Zsh-Users List Content-Type: multipart/alternative; boundary="000000000000117a4305a64e8b40" --000000000000117a4305a64e8b40 Content-Type: text/plain; charset="UTF-8" Hello, thanks for your message. Since I am happy with the solution of using _gnu_generic for grep completion my interest is mostly for the mechanics of the problem. Basically I wonder if it is up to the completer to choose whether to do interactive menu completion, any thoughts on this? Pier Paolo Grassi linkedin: https://www.linkedin.com/in/pier-paolo-grassi-19300217 founder: https://www.meetup.com/it-IT/Machine-Learning-TO Il giorno ven 22 mag 2020 alle ore 20:36 Jun. T < takimoto-j@kba.biglobe.ne.jp> ha scritto: > > > 2020/05/23 1:12, Pier Paolo Grassi wrote: > > > > echo $ZSH_VERSION > > 5.1.1 > > I think the problem is in _grep in that old version of zsh. > > You can either > (1) upgrade zsh (probably zsh-5.4 or later works), or > > (2) download the latest zsh tarball, extract Completion/Unix/Command/_grep > and use it, or > > (3) copy /usr/share/zsh/5.1.1/functions/_grep and modify the following line > (around line 13) > '(-e --regexp -f --file)1: :_guard "^--*" pattern' > to > '(-e --regexp -f --file)1: :_guard "^-*" pattern' > and use it. > --000000000000117a4305a64e8b40--