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 30130 invoked from network); 14 Jun 2021 18:50:38 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 14 Jun 2021 18:50:38 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1623696638; b=1TZMod9m/pQm/TjbDKDb3uoh5JQO/tzB2nWZqVO7NwZZuDxd8JY2FUVDOTPAkhDPaflpUj42XC OWtnuH7szcIuRvNVMpbijqqkFN2NLZK5KevkX+JKOIjDBtY8rjm5ys/c+X9XNHXMMoXdu7fJqp gbfPYnuAUoC6DSfBNHpOCorRJtdR6ACcElcTBFf5olKffXjDbO1JWnB5h85Glz5qnJ6SSkeZIy V200iUpdzCI/La7+XGdH4LLIF1cOSVKlplcL+Fu5xQ7XaWJIIPH3EJnlZmjJXmfWkPscjSisO4 I+ayO6qx3wo/6q4pkemGk8ew4ldgzpfUvsTxRhrZGzRCtQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mx.spodhuis.org) smtp.remote-ip=94.142.241.89; dkim=pass header.d=spodhuis.org header.s=d202102e2 header.a=ed25519-sha256; dkim=pass header.d=spodhuis.org header.s=d202102 header.a=rsa-sha256; dmarc=pass header.from=spodhuis.org; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1623696638; bh=eb9PQhiC1ZdhMSU6rJLoY2lT1y/huybAOvm2Uk74Adk=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:To:From:Date:DKIM-Signature:DKIM-Signature:DKIM-Signature; b=ItPhSXdwd4ba6DVe2w+iwn1NR1YJZtxSzKGedW6JhzIWQbwBWLRm3TQsxGKtu1f79aqqMKuDba CaoeTbronkP07uDlvP3TEI8BjIepgpt22gab2mWwinlhSa91wbQxdSURy70r0zAt1OT9XEkAdU Aa3nyYosarXUfbV8XMmL5MIrCURUTMjPuZ6corMvUH5VVktj8HoRbu5g9Senj29XdLVpAOiusB Z9X9XctwloqcYReRYukGqxcofEDPIntF48enVLduBYnJST/6UkW90qQe11PfP3NlK2VtVuUStc 4E4nwqRhtaHo+vtUmH9Xng3iJvpILXDNPNGilg8TtRwYXg==; 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:In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:To:From:Date:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=0YNTaeqKW0F+l3reLCf7lZeuqytSjX2cUNmFYAHbfns=; b=e9UIunEHsiTAxXrKu+CT0J2/bz 2pggqLcKXIjt0qBcEiXyjoW7aSqId3ksKbrVLUOQlCerDpGb6/taNLrGQs2Ahihv5RLrSLg/Lj12d +F1MD9tIcmELXcwj0yiTqSf2qzdYj9egzfWaddLsLOMrcqb1YuiuW2ESWKi02mN+xf6fgmllK0mXe knWr6ZLICL94PthiwL8vk9qvlSaam2qaZg5jFMuxkd7u6T5nQRloX5H20EsvFxMcDHIbo/xnHDo6D 2/2uGf8eFBxjwRFZotKjUSAprac3d/uINoEftXu4zunOSs+0QHujL+9yYs1ynx1+Ldwz6hNtmKqhM /dG7vyqA==; Received: from authenticated user by zero.zsh.org with local id 1lsrfR-000EwV-2h; Mon, 14 Jun 2021 18:50:37 +0000 Authentication-Results: zsh.org; iprev=pass (mx.spodhuis.org) smtp.remote-ip=94.142.241.89; dkim=pass header.d=spodhuis.org header.s=d202102e2 header.a=ed25519-sha256; dkim=pass header.d=spodhuis.org header.s=d202102 header.a=rsa-sha256; dmarc=pass header.from=spodhuis.org; arc=none Received: from mx.spodhuis.org ([94.142.241.89]:21786) (DNSSEC AD) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1lsrfC-000EeR-Kf; Mon, 14 Jun 2021 18:50:22 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=spodhuis.org; s=d202102; h=OpenPGP:In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:To:From:Date:From:Reply-To:Subject:Date:To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:OpenPGP:Organization :Auto-Submitted; bh=0YNTaeqKW0F+l3reLCf7lZeuqytSjX2cUNmFYAHbfns=; t=1623696622; x=1624906222; b=FzRcUqMPp38x1LHtrEHH8JNc9VCCq6kzbOj18ln0dkRKVvZ sKFvaEzWQVGaGfUF1BWk6SnLksAesp9O+DrPXI57DGtXxVQDNR4TET8d5gUNl9bWIF7jz870zP13A CKIWBzzsPXvPFMDk/4gt6/X/7sY2VQ9gE/9purTujSk3lDB9Cb6mPtHNJJYsGu9QXnqxKIg+EKS2u h7rH1OLZNUP3N2yDcBGP+6Ux3rIq3m/bEVegxNoK8Ay9uiojQL8rEKvtGbMl3iGFy8MD3m0dr4Qc/ 5iPCGsoOrCam7vfUoieCtMPMJvHh6gKNvvPVawsLEbtLDPmrB9O9ZzI7xPdFjUwA==; DKIM-Signature: v=1; a=ed25519-sha256; q=dns/txt; c=relaxed/relaxed; d=spodhuis.org; s=d202102e2; h=OpenPGP:In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:To:From:Date:From:Reply-To:Subject:Date:To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:OpenPGP:Organization :Auto-Submitted; bh=0YNTaeqKW0F+l3reLCf7lZeuqytSjX2cUNmFYAHbfns=; t=1623696622; x=1624906222; b=wRnBD7/2/gF+xZYueQy4cGWfJufu3zHQRIescdR8c1ivXeZ cTTq4GKCAH2QBtpOr4WpCOgZSSggh1FnS9YPeCQ==; Received: from authenticated user by smtp.spodhuis.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1lsrfB-000EeE-Lv; Mon, 14 Jun 2021 18:50:22 +0000 Date: Mon, 14 Jun 2021 14:50:19 -0400 From: Phil Pennock To: zsh-workers@zsh.org Subject: Re: zsh/stat: output file birth time under Linux Message-ID: Mail-Followup-To: zsh-workers@zsh.org References: <20210614120903.GA3136251@cventin.lip.ens-lyon.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210614120903.GA3136251@cventin.lip.ens-lyon.fr> OpenPGP: url=https://www.security.spodhuis.org/PGP/keys/keys-2013rsa-2020cv25519.asc X-Seq: 49078 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 2021-06-14 at 14:09 +0200, Vincent Lefevre wrote: > Could zsh/stat output birth time under Linux, like what stat from > the GNU coreutils does? I think the tricky decision is what to do about setting an numerically indexed array instead of printing or setting an associative array. The indices match the traditional stat() return value indices, but for extended fields there may be some severe portability concerns here. IMO anything which associates a value with a label, so we can grep for btime or index the -H assigned associated array by the string "btime" should be good. But, again IMO, we should not extend the results for "-A". Others might disagree and say that as long as we include the correct indices for the "-l" option then it's possible to write portable code. I worry though that people won't and it's too much of a foot-cannon. -Phil