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 24249 invoked from network); 23 Dec 2021 20:30:52 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 23 Dec 2021 20:30:52 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1640291452; b=FuxK9mG4AGw84A4bJsu1DuZ7PrZUykpdCp1NJiy9BwG8YZQ42Fuf5eeCySbWyfNiOUJRO4faSB lzZygSVf/vhgBkuQGe10xMms2PjUBhmlKL8xqW8RG6IIQ9/pEpe6vdbe/kTsHKOlvhZeHIfzRv OS7A8uqKtx8RuvucleyIIwzVn60FBcfc5lNkzV4QuFwn5/NnrqaiBgrqzpmOaw5teBE/mtYmwf wwX90BQlMqvA+0yoNZZL4LZgfuuwoNWOr+GB3M45KYlnNRNIihTVBi9/HmrT50+KADJgw56tEg bZO5wDvhq6CYmbd8Qu+bNeptYhCrtJWMfmnopDWDa2kbOQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (wout4-smtp.messagingengine.com) smtp.remote-ip=64.147.123.20; dkim=pass header.d=daniel.shahaf.name header.s=fm2 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm1 header.a=rsa-sha256; dmarc=none header.from=daniel.shahaf.name; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1640291452; bh=vr8Gi07AabTtN6NH8rBQIQzBVwJRMiVeYi7X/OEd4Ws=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Subject:Cc:To:From: Date:References:In-Reply-To:Message-ID:MIME-Version:DKIM-Signature: DKIM-Signature:DKIM-Signature; b=nMQ58Y1fhSvzRJdpBKr/Q9RfI3QBv8/qE7qR/Lvr7m2xwvrcfE1bVKxY4fA1EZnvMYkZ3W9X6w /J3EiSRX6XC+NLaqNFsJwtIBJLkbQsY1OmJ+gXWwJX3dvFei62sVVBpC5cKl9+iqc7O/gcOrUF RbY3KOyWlTHrJjUMoDc7CaLDTGQ9zheUa4N8XrTqeI0d5iSqyW0LJjWbZF3vifHe86MrLAzwBm h6CAbz1Fi9AQlnDxU5z7BsCbrNuHoi7NxODhce5Pdk8KcpuLH1PoDGy7XVSpMWI+G+nweX7QMm YY8qauslWKnP3yUCjTM5kKAx2aRZT9BpzM5q5ZHbC+Xtag==; 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:Content-Transfer-Encoding: Content-Type:Subject:Cc:To:From:Date:References:In-Reply-To:Message-Id: Mime-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=6qCbZjpbL9pN9Bp9DdA+y5qCcjw9e3g/5ad/Hlk/swY=; b=lP1olTBaq85EB8QqWZYxDJ0AM7 zY47LSTS2oEtskbPcQnhrr6Wp7xdpzDF5Di09RMtfxtHNAd+8QjPWaQMyWVly638/lEBmhy7vv77T aroC1Zrg9Y1uLkFuP7Q8gx9rzlkhn4EtWdk1vf8ICUFtGdUUNz8J5J0tvjyclyNJ9eu4sgV3MofhT 5QCsYgWmTcH8G0U4yxcK+Uo+KuJALS4uUecWZuqj/DzugxIk4b40sSrB9y6BxTtVfCct483r0Kntu K96lWKeCmcQwuw6zTyzTlIYyUpyplz2vKBQmYqIPBytHWQdgxp4VStZatlHFznpf+hMGIIRxKrs+D oMcR3b1w==; Received: from authenticated user by zero.zsh.org with local id 1n0Ujj-000FdL-J7; Thu, 23 Dec 2021 20:30:51 +0000 Authentication-Results: zsh.org; iprev=pass (wout4-smtp.messagingengine.com) smtp.remote-ip=64.147.123.20; dkim=pass header.d=daniel.shahaf.name header.s=fm2 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm1 header.a=rsa-sha256; dmarc=none header.from=daniel.shahaf.name; arc=none Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:39103) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1n0Ufv-000EpR-Al; Thu, 23 Dec 2021 20:26:55 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id B01D1320090C; Thu, 23 Dec 2021 15:26:53 -0500 (EST) Received: from imap46 ([10.202.2.96]) by compute5.internal (MEProxy); Thu, 23 Dec 2021 15:26:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=mime-version:message-id:in-reply-to :references:date:from:to:cc:subject:content-type :content-transfer-encoding; s=fm2; bh=6qCbZjpbL9pN9Bp9DdA+y5qCcj w9e3g/5ad/Hlk/swY=; b=ReHORJkTsyo32DmYC1SnSAERDD7ztY8prMMthO7nEL fe2c2tU0gJVns0Ve4rfOVRbVxiNsbMqya5iU44K6KoojmhnvXrzwxvMcZz/ihfCM UDAv/p8QBHk463zDBEHc4FQ1GM6IKsbfWMOhgMiAt4QLMxa7EG0+IVNVLOU409+o lyTa1p2hsLH7leu+VrAsvGhhnYhTA9A5qG1Mf8YxJwrlzQRuMDIz7nWDlg9o9iRB tocP/LIYABx0v9Sgo4ZFm7nAB4KTc1Vl5SPYm2sGmMvPhL9SRdMfGwfPYbNv4Htz F7iMiX1m2sXwv4d6Fvcky5XhC9Tdwe0t2rbnKvBQP0mg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=6qCbZjpbL9pN9Bp9DdA+y5qCcjw9e3g/5ad/Hlk/s wY=; b=cF1WwpddAsVAXJ/RojGa4FDER17T5ZIByha5Fk2Ky3pY+so9NGtNX5uNb TsDUMKv6TPZi3O1+M6aDOO/ccPzN6MAU5xGSwoeO0rL/QgdB+0whV7q6UkiBnAOx Ata+l2iVi5+J146sQDuqb9khzbZc4iKUCnE9N/uT6alnS/i7XA5p5+RRx6vwdkyj /BWiI0O13gtHAITf7BxcTP4sX7oaAc78UTSC+92b3ISR1P8a7Xg9TbWI5tP4Fmwy t1KV65cw5CrM9fb1AMe3ugSRG3s5fFfzgOKzeDHK0nnpmyPkppkWj/4DPZookAZT 0XzKm92fu/cOA2/nFvXmwFspzdVgg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddruddtkedgudefkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkjghffffhvffutgfgse htqhertderreejnecuhfhrohhmpedfffgrnhhivghlucfuhhgrhhgrfhdfuceougdrshes uggrnhhivghlrdhshhgrhhgrfhdrnhgrmhgvqeenucggtffrrghtthgvrhhnpeefhfekfe evieelleehiefftdekudejledvhfdtjedtgeegvdeuffefleehhfdvgfenucevlhhushht vghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegurdhssegurghnihgvlh drshhhrghhrghfrdhnrghmvg X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 1104F1EE007B; Thu, 23 Dec 2021 15:26:53 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-4525-g8883000b21-fm-20211221.001-g8883000b Mime-Version: 1.0 Message-Id: <9f228b0b-d85a-48eb-a402-f55d475f4890@www.fastmail.com> In-Reply-To: <0d347ad9-a76f-47c6-bf89-d12339f730e9@www.fastmail.com> References: <20211222210419.73684c0d582119959772a9a9@gmx.com> <20211222215347.6316899d57a34966976ef127@gmx.com> <963db017-2373-44d2-8daa-3df2410e53be@www.fastmail.com> <20211222221848.6ad7b5dd8396b26cf5da9a19@gmx.com> <0d347ad9-a76f-47c6-bf89-d12339f730e9@www.fastmail.com> Date: Thu, 23 Dec 2021 20:26:32 +0000 From: "Daniel Shahaf" To: =?UTF-8?Q?Lawrence_Vel=C3=A1zquez?= Cc: zsh-users@zsh.org, "Duke Normandin" Subject: Re: My zsh prompt Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Seq: 27445 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Lawrence Vel=C3=A1zquez wrote on Thu, 23 Dec 2021 06:28 +00:00: > On Thu, Dec 23, 2021, at 12:18 AM, Duke Normandin wrote: >> Hopefully zshmisc has a list of those return statuses. > > It doesn't, as the shell does not determine the exit statuses of > external utilities. Beyond the general convention of zero for > success and nonzero otherwise, utilities dictate their own statuses, > so it's up to you to consult the appropriate documentation. > > (The zshbuiltins(1) man page documents notable exit statuses for > builtins.) In addition to the zero/non-zero convention, there are: - A process killed by a signal exits with 128+$signal. That's why Lawrence guessed the <130> was the exit code (130-128 is SIGINT).. - There's sysexits.h, but not everyone uses it. However, one could argue that zsh should recognize those and print messages similar to the messages it prints for processes killed by signals. Cheers, Daniel