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,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 32163 invoked from network); 1 May 2021 13:40:01 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 1 May 2021 13:40:01 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1619876401; b=xYI0n+G8UxXDxSH1ogMC5YTAYaGH6Kj/+/H3BAqlt5ia3JUdmbnxVsKWe+hkCcF7eParZ+nTWm D1G9eyyGyHqC/7UmnocnQisqcnpuRI4BS7yzNpl719YrHyWSptayWBhip17yIp1PyLBFI8gz9q r8U6LrildeLmfH+iBh5cR5vt4wSG+6l4xAeZ58fy85PqXFbYojvdw5jFawXnxCuvZRbsIas8q0 Ui8rGzSm74tgKe1Kyjte8YPEx1ZEYxqrg86x2ff0w/lf0WJ+HLfYIC8PPlevLm5nggWI8LY4hc 1QCgfoVu8CAUvIxcrc/d6EX61jgI/QtiFMODO6Qtd5iKRA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-oo1-f42.google.com) smtp.remote-ip=209.85.161.42; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1619876401; bh=AwuRPC+c6TkEzygzUQ9M35wqtmP/UWX+tttkB4KIWIk=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Cc:To:Subject: Message-ID:Date:From:In-Reply-To:References:MIME-Version:DKIM-Signature: DKIM-Signature; b=m1PFabxuZWXLPbXP6MFH3I7TvG44/bC9SbN5DXQLRLqGTHdExdr4rp3YVHn/sCTAWbKINcsTNA VfFryrIdAoXoCp0Vu04FEsI2Dg1ALbISphwdSYgD1aiX0m1/WMlITk5VJri0+KCrL1cMFpcpdg ni8z6toMa1TKiurXP0svo14vglobVH1chhg74CRTJHAcAukrvV00LdjYR5vLOW/43K7z5Ubt9v 7sm6poy4Z+Sybv3cWw8dN2l5udsg177Qu21/Rf16zViRjZvHCaWom0jiUaovqSYrVBxPCjgegV 0e9q8aCVn8W14VcwKZ/usQlp/n6AXJ4hrzPC3mCtByBVkg==; 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:Cc:To:Subject:Message-ID:Date:From:In-Reply-To:References: MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=kCeN2WKjp7EpVh3LL8atulcPqo9/Z8E0/gLtnZdveeU=; b=EVteE3HEMZ/IXl7yp7dnyYLXwA nIZ6kJTxmzfPjd11UqTsFlHkUK4uOVYEOkO5kL1H3aGRua8Bhj10LjMn+Q49YfdP94V6/jUlGnaBs vTPkLgC0GL7ZNhOP3L55mkWQ2gr400vdJJee+Sm0fha03YTuRdwr89J8opSokWSo6ga085l2ADmei neHhn2EfjtMLJlQoABlziZS/ioOiHH4uLyFVProiXgHzEktTSKHuzrhUdkcJaFhMKqUleWTsIJFti Pd6E7loalqQ0UuaP8DEAmmlop9ojpU31aZZ9xPOVFCC5cpx8WJza1EdvFrEezIrfCFwFbPAFuefdD AfLTgapw==; Received: from authenticated user by zero.zsh.org with local id 1lcpqi-000CH9-S6; Sat, 01 May 2021 13:40:00 +0000 Authentication-Results: zsh.org; iprev=pass (mail-oo1-f42.google.com) smtp.remote-ip=209.85.161.42; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-oo1-f42.google.com ([209.85.161.42]:37388) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1lcpqS-000Bzs-1v; Sat, 01 May 2021 13:39:45 +0000 Received: by mail-oo1-f42.google.com with SMTP id c12-20020a4ae24c0000b02901bad05f40e4so254819oot.4 for ; Sat, 01 May 2021 06:39:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=kCeN2WKjp7EpVh3LL8atulcPqo9/Z8E0/gLtnZdveeU=; b=hb2dLJWW7xNv7wW8n1nVSaf0Z24sBtTwfjbH3ynK2SDG2XV/57Y6ccjDSfaUccfrht YYY5deK9zemJQTsEOQHLpRkg0TA2NXUa63gMo2u3TRD6PpzlOqFDcC8SCpsa9kwOHFIT keyfeXFgtGFagTbT8fH5HIBfdBv8V7rQH07BBCuFM2MLgtS5JG+GDNwid8+7tujSirA8 Pn93gxRioCF6Xy+Fg+P3I8fadzVM0GVP9PBSUjl/gy1jMLWsOtmz21xrs7XzXFdrSlBA CI0AofhIOfPQzUwYus8ekQaM/xUYHSbZuQRlJz1YUp0RcrcCt+ZsL6ps7Ri58XWjbxap T4nA== 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:content-transfer-encoding; bh=kCeN2WKjp7EpVh3LL8atulcPqo9/Z8E0/gLtnZdveeU=; b=s68vfGDZQWMcr1xuAuC1XU6h290DK/4jJQ9vU+hnUUcvw8IxX7YmtWLSOFVkOPw2Qv hbFPloHZX3L/4k+vZqs7c51MFAmBprt7q01m+z7K/xX1Vik1DNEp7dBBP7eKFzeQX585 opFGcgui+mNxIFCu31WFj38SMtAin2kEFubAlH7TaeON/Mw/VsWvMyz8jOq7A2VvtPyO xnUEBf/a5i8/ovlXR0AEeOcwFQ7Vdk21bCbc1DVpBxo1af9YlXW4KxGD5u6sMX3paNuc ex7dMtwsbz22surs7xv86DWh4YThN60xzVZey5ZVluXHL8yFOjYj5+9i7kyJ4ey36Zr/ qUIg== X-Gm-Message-State: AOAM533mnXQRgYUkKvNd0ASSLp0FNsIWFHwlo1leVAQupI9ccR1aXYjQ GEA36iI+MvPAX/+imvUfjfeB2WxCR7SgjhCSFMY= X-Google-Smtp-Source: ABdhPJySLyTuc3Y0zG3C+v0/Pv/NaCl4pusdbJCL1K/yL3vB8TcX3b7n64s7o6bMOkPeMHk93PtjgdXBycvq+Oj+Z28= X-Received: by 2002:a4a:b4cb:: with SMTP id g11mr8644315ooo.41.1619876382788; Sat, 01 May 2021 06:39:42 -0700 (PDT) MIME-Version: 1.0 References: <7E71FA83-356E-448B-9726-02DF3FF5BD14@gmail.com> <873D08A9-F321-474A-8440-CCE7DCCBA529@gmail.com> <20210414120551.GA3882@tarpaulin.shahaf.local2> <6CEA4F3E-9A64-44E1-9121-FA9D5E053AB5@gmail.com> <20210414140950.GH3882@tarpaulin.shahaf.local2> <0be2a280-9f0e-4762-87cb-aa6af32a813c@www.fastmail.com> In-Reply-To: <0be2a280-9f0e-4762-87cb-aa6af32a813c@www.fastmail.com> From: Marlon Richert Date: Sat, 1 May 2021 16:39:06 +0300 Message-ID: Subject: Re: sysexits.h codes? (was: Re: [RFC][PATCH] `newuser` prompt theme) To: Daniel Shahaf Cc: Zsh hackers list Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 48765 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 Sat, May 1, 2021 at 12:16 AM Daniel Shahaf wrot= e: > > Marlon Richert wrote on Fri, 30 Apr 2021 19:40 +00:00: > > > > On Wed, Mar 24, 2021 at 4:29 PM Paul wrote: > > > - I half-agree with not unsetting clobber. noclobber is better defaul= t > > > behavior (it prevents much more damaging surprises), but just seein= g > > > "file exists" or "no such file or directory" without any '>|' or '>= >|' > > > suggestion is frustrating. > > > > That could use a more helpful message, too. > > Yeah. The code should say what it was trying to do when it called the > syscall which returned that error; i.e., =C2=ABzerrnam(foo, "while doing = bar: > %e", errno)=C2=BB rather than =C2=ABzerrnam(foo, "%e", errno)=C2=BB. That still wouldn't help the user understand why this happens (because NOCLOBBER is set) and it still doesn't tell them what to do about it (use '>|' to override NOCLOBBER or just write to another file). As for your other points: Your call. I've laid out my arguments; I have nothing further to add.