From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: from zero.zsh.org (zero.zsh.org [IPv6:2a02:898:31:0:48:4558:7a:7368]) by inbox.vuxu.org (Postfix) with ESMTP id C7DEE2BE5B for ; Fri, 15 Mar 2024 12:56:06 +0100 (CET) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1710503766; b=bQNV5vkPwS9XWOapbPYNAquEo3J4aRJY/7THiz9+vpFXUUPHxxgT7IPTXZHUrfDr3vCYgDMNHK K6763tELsuWFdyoPo0GovT//zke2C76y2V59sxOD6EnrNi1BVsI0eRGc4TiYUy7YbGkxdC7bDt QbovCkfFEvhYj+Mk+V1n55moC/2We4J0O1/Spf3DyE+GjvxWJ/mHFvoKLZaF7n/1J+WB9XqOAt 9vnvrQtBnXSvzouHEU9j4DsawxAEClKCNZZBzLrl1lkRF/8Xug6daEAWjzkyMaVrVpDGO2B27Q Js+dr/Hg+a8DnknnqmGJ5IXbX9ryzBYFR8eADmmBQGi7gA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (cventin.lip.ens-lyon.fr) smtp.remote-ip=140.77.13.17; dmarc=none header.from=vinc17.net; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1710503766; bh=qSfaDIBv8vUTXG2tb7QJ+T72O43I5KmJk4uc8f59OvU=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:Content-Transfer-Encoding:Content-Type: MIME-Version:References:Message-ID:Subject:To:From:Date:DKIM-Signature; b=BlR/1cvUKfgBvM90PxxYhx8hv11HmFzujQkIlOVCL+pgBNjaxfx5WqXoq9BmGSgd0QtadMiE9m mO+iOtzgVotxAk26T538qzKeAmZ6uzCcl1rmbBFlakQH93qgoD0VQky+ZdosxhewvBzmEbyoKX amQiiVKy250o/jcYbiHS0zMJPKjDDiiRKnkR/8PtdN+WRQRSKQh5pwDjafjyq4G9IUWpMArvr6 +1TrpxUCqiiUtHGbsNFqIntw1wcZqGn59C+z7yoUf8E0bSbrLPJP0POoOZM1Rl3BZFhAO4dC0f 5MHSeyo/BuFawgf8+9bGLw7XBREFDvD2+ouWzN32DLnb5g==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:In-Reply-To:Content-Transfer-Encoding :Content-Type:MIME-Version:References:Message-ID:Subject:To:From:Date: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=lnZh2qGOEAk/mzY+2Fei6SQ+J7RWr/oK+WSPPTApY8o=; b=FVCRsVLN0R8uKf7kxQ0Uw0tLMR ocwRWbknd4JZ4LX/a44JytaV3hlgPCSBSBLZindPQluec9/IGzkVaXUZB3Cxl1BVH7OP9h5aouTzW suHS/ltR8FOwM0j8AO9wvWl4tYjqqwq3Y2ngUZ2rzOWS+G9cZWDvIwZD9e2GR1K5vV8HviZSQyQqQ Fc5PfxXVww8aXwIBRib1YuJZg5GlxiC8WPgQYmr5MJFlbQeJOcSDqDVTFVyqwqpB/V7LLU8yNJ1Jm 48XL6MayhnP206L/+wxEfzAyvRfGVRzGiunYJI+TiSeDIUvUT/XIeSRDHg2NRfuEIwXsDOpuhv6LZ T828aKbA==; Received: by zero.zsh.org with local id 1rl6AN-0002gl-WA; Fri, 15 Mar 2024 11:56:04 +0000 Authentication-Results: zsh.org; iprev=pass (cventin.lip.ens-lyon.fr) smtp.remote-ip=140.77.13.17; dmarc=none header.from=vinc17.net; arc=none Received: from cventin.lip.ens-lyon.fr ([140.77.13.17]:56306) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1rl6A5-0002Oh-4n; Fri, 15 Mar 2024 11:55:45 +0000 Received: from vlefevre by cventin.lip.ens-lyon.fr with local (Exim 4.97) (envelope-from ) id 1rl6A4-0000000Fgmk-2o5F; Fri, 15 Mar 2024 12:55:44 +0100 Date: Fri, 15 Mar 2024 12:55:44 +0100 From: Vincent Lefevre To: zsh-workers@zsh.org Subject: Re: nocorrect documentation and behavior Message-ID: <20240315115544.GA3738413@cventin.lip.ens-lyon.fr> Mail-Followup-To: zsh-workers@zsh.org References: <20240313161732.GA3513530@cventin.lip.ens-lyon.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Mailer-Info: https://www.vinc17.net/mutt/ User-Agent: Mutt/2.2.12+69 (354c5b11) vl-149028 (2023-12-10) X-Seq: 52761 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 2024-03-13 20:46:40 -0700, Bart Schaefer wrote: > On Wed, Mar 13, 2024 at 9:17 AM Vincent Lefevre wrote: > > Spelling correction is not done on any of the subsequent words > > of the full command line. [...] > > It also says "A simple command may be preceded ..." which is equally > inaccurate in this case, but there are a lot of bits of the doc that > colloquially assume that one interactive command line is the same as > one "simple command". No, this is really before a "simple command". For intance, "nocorrect" is not valid before "for", "if", "!" or "{": cventin% nocorrect for i in a b ; do echo $i ; done zsh: parse error near `for' Or is this a bug? (I do not see a reason to forbid it this case, and IMHO, "nocorrect" should be allowed as the first word of a complex command, the semantics being: just ignore "nocorrect", i.e. it is only used to enable spelling correction.) -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)