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=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 4206 invoked from network); 23 May 2020 19:54:55 -0000 Received: from ns1.primenet.com.au (HELO primenet.com.au) (203.24.36.2) by inbox.vuxu.org with ESMTPUTF8; 23 May 2020 19:54:55 -0000 Received: (qmail 28413 invoked by alias); 23 May 2020 19:54:50 -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: 45903 Received: (qmail 12556 invoked by uid 1010); 23 May 2020 19:54:49 -0000 X-Qmail-Scanner-Diagnostics: from mail-oi1-f171.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.167.171):SA:0(-1.9/5.0):. Processed in 0.718078 secs); 23 May 2020 19:54:49 -0000 X-Envelope-From: schaefer@brasslantern.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.167.171 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; bh=LHElzXkyD8HTkPhLxsuM6R1IXjYE9138HAYe+n8jcqA=; b=idU4lvqUaChEdrX7EDBSlbGx05KnSv1dNVvsuI5BcV4GoWRLEhu1KXnUtI2FZThMXA aWgtbTrBnKD5PzTothea5A5k7sn4j3MyimjcHxJQoGtTORvngfAdZ/cRm02KCImpuXqF HyLPyr0dFgm1MfhC9M7c8jwrIsU/7YLLYx3czDtyDD5zRknejeCr6ZGfaAu6TBD5RWTC CjiBnVfHaC8d+ByHUi2CM/ihcPnDmE88OX7Ew4OIGB0woFa6HUEcRgQ9T395Jhuj6hS/ lF5oiTZiFY9FcdVbfN48WSpNA14EaasxDcvuh3pXp+ddjItIrtdkmOlLxFKWVnXecVDF EBjg== X-Gm-Message-State: AOAM532Um2NMQo1p5WC7wNZSDL4xsSZVHyjcFfhvhEVD5altfcwIStm7 aHo0DW44kbo833YAnt6RrOMO7YMI0WBZ9d+vQYr2HbHNSgw= X-Google-Smtp-Source: ABdhPJydDYLteGsc93+i5rYev8yGqcTLew3BQCRf9ip15tPlP66HZsLB2gjlilUn+dodwV9vABdLEL4U2Y7y3SA4zhk= X-Received: by 2002:aca:a8c3:: with SMTP id r186mr6724193oie.173.1590263655796; Sat, 23 May 2020 12:54:15 -0700 (PDT) MIME-Version: 1.0 References: <22f19bb4707e388629092d2e8673d8294fa8e375.camel@ntlworld.com> In-Reply-To: <22f19bb4707e388629092d2e8673d8294fa8e375.camel@ntlworld.com> From: Bart Schaefer Date: Sat, 23 May 2020 12:54:04 -0700 Message-ID: Subject: Re: [PATCH?] Re: Autocorrect for commands with a hyphen (dash) in the name To: "zsh-workers@zsh.org" Content-Type: text/plain; charset="UTF-8" On Sat, May 23, 2020 at 12:45 PM Peter Stephenson wrote: > > On Sat, 2020-05-23 at 12:33 -0700, Bart Schaefer wrote: > > [Moving to -workers from -users] > > > > On Tue, May 19, 2020 at 2:25 PM Bart Schaefer wrote: > > > > > > So, the following? Or should this also have the equivalent of > > > > > > if (*w == Tilde || *w == Equals || *w == String) > > > *x = *w; > > > > Any comment on this? > > I don't think you need to put back tokens. Good point. What about the special handling for Tilde et al? That precedes the spckword() call in zle_tricky.c