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,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 10203 invoked from network); 23 Apr 2021 21:04:18 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 23 Apr 2021 21:04:18 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1619211858; b=xqeiVnfjkzGdBm/3iFmKvvy6vIREoUdxm5+unjk3LUlNjTf0NZCKEiNQVjgd4BgJCrHCEaBH+n /BoTPkCq4ZVGCp7cjG6wumkjqnQ7JZmaFdEOKIDBwkjA0tjVyPXAHNgOTNb1IOo9EJMcxAOf7q 1yc+1YT+j+HaGPefazPeNY2lB16muBEBNQpMJFnRRAHoe2sy3ArqgGtCme30z4loYXRddw1+UY tlBGKibn7qz3Bibu0JpU4PDdPmacAYk+zRezsgZ3fmyQ3x/qJhzS+9R0JKKBjkonuDt/bgsTcV EChUZvog3ssM8Jy6133KvaPpYWGO6AnYGXqK/Ol2wOGTGw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (gmmr2.centrum.cz) smtp.remote-ip=46.255.227.252; dkim=pass header.d=volny.cz header.s=mail header.a=rsa-sha256; dmarc=pass header.from=volny.cz; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1619211858; bh=Ta02VoAtwrFKtddb7SCEWIiEoxK0qbuZABtIQ8+yF1w=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Message-ID: MIME-Version:In-Reply-To:References:Cc:From:Date:Subject:To:DKIM-Signature: DKIM-Signature; b=BRw7AzXDyap+ogvnKBp4Awti05VnpsOEc5r3FyCVR9/crulOy/BZIVOMzI/UTs9tJM3eJ3w84a lFQEqZNgN4LZFBOOi2C47szBE63MBKE6DhYDSPbzsUJOoXCxAiUBTbBAZFuyJonnBMUmqQosWl f0JWyncJM7MIINZ8syOEkmBpKkb+HpXkKCCY7VI7h7RrSLy2gzKOveeaKsU7sxmFo6uypB1LPW NSOcENBYCmN89QtrJMxRaDff/2dxMr4Xr62pe7np4vT3wLKFokIZaC10/tr+Yosz5irSSSOUCL dujOFdguMalRKfQ467RM8wGn4k6fELpn31Yw9czDvSBlEA==; 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-Transfer-Encoding: Content-Type:Message-Id:MIME-Version:In-Reply-To:References:Cc:From:Date: Subject:To:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=g0j+wYu4qetq8VrcKIszBqRwZ/dDasMQBDHXjPzR2jo=; b=UELLyAlybED4d31JoOS0KKIfQD lhvQO65NDIWyYUAta32Ph2oJR1fbHXVwL9y9sLWGL8u1ZB2RCXdKrP8ixr6sPqxjLYtwYrM8LcB94 i4teQpclW8N86MN9VsMwaZuCuZYYZ84sF/kU7zLzcUXWuxOPNbvHKBN3wnPHV+aiokklgAt62bu4J YIjBhBqZLcO75Lrnit3O4CUP9vh8/G8US99HEe9RJXXgi06woVLBXzSXosBM1H6VDV69OwuFxpX2l naqRjLdOJejyM+D++w0216qFwGAMaoB3Jo9Fd2FjW8Uu3Th6V1t0J0wkgXLrXF1cRU6CifAPhRTwF W4uLj2+A==; Received: from authenticated user by zero.zsh.org with local id 1la2yH-000Frt-1d; Fri, 23 Apr 2021 21:04:17 +0000 Authentication-Results: zsh.org; iprev=pass (gmmr2.centrum.cz) smtp.remote-ip=46.255.227.252; dkim=pass header.d=volny.cz header.s=mail header.a=rsa-sha256; dmarc=pass header.from=volny.cz; arc=none Received: from gmmr2.centrum.cz ([46.255.227.252]:42863) by zero.zsh.org with esmtps (TLS1:DHE-RSA-AES256-SHA:256) id 1la2xz-000FbC-EO; Fri, 23 Apr 2021 21:04:00 +0000 Received: from gmmr-2.centrum.cz (unknown [10.255.254.28]) by gmmr2.centrum.cz (Postfix) with ESMTP id 9E2E360006C8; Fri, 23 Apr 2021 23:03:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=volny.cz; s=mail; t=1619211838; bh=g0j+wYu4qetq8VrcKIszBqRwZ/dDasMQBDHXjPzR2jo=; h=To:Subject:Date:From:Cc:References:In-Reply-To:From; b=WUwGT13JjjefMh9BzRjDKeCRpA/X6SoXpISv+LsnJ1mkIAJKSx2z4YiiJwd03JElF muTvvaWe37OjL4m+I1KLmxHL+rhaCn/PlZWx8Ylj8InRRqAF0qcpLmkaYWMfilB32P o0Mvgh2uHhTvA6vgFbLoPLrc/qGHR7ohWQ4ud1Aw= Received: from vm2.excello.cz (vm2.excello.cz [IPv6:2001:67c:15a0:4000::b]) by gmmr-2.centrum.cz (Postfix) with QMQP id 9C51877DE; Fri, 23 Apr 2021 23:03:58 +0200 (CEST) Received: from vm2.excello.cz by vm2.excello.cz (VF-Scanner: Clear:RC:0(2a00:da80:1:502::8):SC:0(-3.921295/5.0):CC:0:; processed in 0.3 s); 23 Apr 2021 21:03:58 +0000 X-VF-Scanner-ID: 20210423210358.333680.5439.vm2.excello.cz.0 Received: from gmmr-4.centrum.cz (2a00:da80:1:502::8) by out1.virusfree.cz with ESMTPS (TLSv1.3, TLS_AES_256_GCM_SHA384); 23 Apr 2021 23:03:58 +0200 Received: from mail1005.cent (unknown [10.255.254.34]) by gmmr-4.centrum.cz (Postfix) with ESMTP id 4AE1A20056056; Fri, 23 Apr 2021 23:03:58 +0200 (CEST) Received: by mail1005.cent (Postfix, from userid 33) id 4316260110039; Fri, 23 Apr 2021 23:03:58 +0200 (CEST) To: =?utf-8?q?Bart_Schaefer?= Subject: =?utf-8?q?RE=3A_revised_patch=3A_zshmisc=281=29_clarify_non=2Dsuccessful_exit_statuses?= Received: from 46.135.89.215 by mail1005.centrum.cz (centrum.cz multimail) with HTTP Date: Fri, 23 Apr 2021 23:03:58 +0200 From: Cc: References: <20210411141520.4ABA89D5@volny.cz>, <20210413155236.GR6819@tarpaulin.shahaf.local2>, <20210413200341.D91B3837@volny.cz>, <20210414110355.GA31655@tarpaulin.shahaf.local2>, <20210414134033.1AB3540B@volny.cz>, <20210423141844.D01FC4C9@volny.cz> In-Reply-To: X-Mailer: Centrum Email 5.3 X-Priority: 3 X-Original-From: MIME-Version: 1.0 Message-Id: <20210423230358.344B9302@volny.cz> Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Seq: 48677 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: "Bart Schaefer" wrote: > On Fri, Apr 23, 2021 at 5:19 AM wrote: >> >> vindex(path, use of) >> Otherwise, the shell searches each element of tt($path) for a >> -directory containing an executable file by that name. If the >> -search is unsuccessful, the shell prints an error message and returns >> -a nonzero exit status. >> +directory containing an executable file by that name. > > I would leave this paragraph unchanged. It's not necessary to delete > the reference to "a nonzero exit status" in order to later explain > what the nonzero values are. Heh, me reason was the exact opposite: it didn't seem necessary to duplicate it. >> +If execution fails: an error message is printed, and one of the >> +following values is returned. > > I would move this along with the sitem list to the very end, to follow > the paragraph about the command_not_found handler. > > Then change "If execution fails:" to "When there is no handler and > execution fails,". That opens up a question: what happens when execution fails inside the handler? >> +startsitem() >> +sitem(127) >> +The search was unsuccessful. The error message is >> +`tt(command not found:) var(cmd)'. > > As Daniel mentioned, this should be > > sitem(127)(Your new text > goes here) Yeah, that's been noted :) --zeurkous. -- Friggin' Machines!