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.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 11212 invoked from network); 14 Jun 2021 12:17:34 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 14 Jun 2021 12:17:34 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1623673054; b=zNx7e2P/BhPUT6TtjxRNBA8emrTilLQByb71UF8AUD166jbLLXGGucIzvW8j4C/oLM6WBFMQvj m4hj/3WZKXDs+aVWjRIGnf8EJUcSFevhlqu9F/k5Kw6oJGc19+yQ78zNVIQ33waRGlT/cSOgUx uM5kKVYsXHl5/FZ2RRmbBrHLKsYEvuPCpcTFuLUKna7bfsJLN7Y9f95dsbFG9t+M72981AuE+H XAhILqko6R5EKFk8Nob9nzP8aWjPkVUvGcSDVII7h6oHEhxq9313T7nxHLo0VkVsrBa2GzADno 2Sdamwj0zbmglT7LcRVjsWzS5tza6q3T+/LK3cZvPYNahA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (relay8-d.mail.gandi.net) smtp.remote-ip=217.70.183.201; dmarc=none header.from=chazelas.org; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1623673054; bh=WGLPJq09CM5nhbkaq1osu/2C+DB1tGfQv+R97IRJEtU=; 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; b=nP/29TGnhzVYIry5448os8eLEAUfz46NNv6TqvNEb176/vsgdfF8gcMEFuAyZwiqcttLJgnXSw u+Ao2s7EUOCrlOwPcpO80Cx285ws24D5+35APzSj3zoXGtCCwuNWXH9ZVfMsTkKPZ9IVzPLKIg XOLfKlKPSMxO1FLIZUmI5i/921IBHIQF8joUAW+zBkRMqBopPc3WQUwjH9RQiPhsXXqDl+hFAC Au4ZV7YDsWBYSzq0p8uhG9WyBcizjclDNNH+ibfKCVhfU3IdGIcAHyHOt0BC1DggerWeQ5YHgl w7bRP2FVVyegplTnPeZz/BOoUxBvE0OT95QoIictoxJRcw==; 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=jW5i279CKM165qR3wQ0oOp999swihmOKIfTOmmidjMk=; b=S1+lhkN9eyf2pIWGPp5RIUl1P+ Lb4YCp0t/tZNfmCRZhwfYTLLxJEENV+raE7+Se53wxb5nltiLoYqalhTwhwzzY27CGh+SHNXHjP8g F93NJ/ip6othVEDCCkqvJsPu02yih3l+ZGfsge/lU/7RO4IIbDrR1B/KMiAjEiKJbeR90knc1HVmO n9iIpnG4NUThL8a2VNCQgjoAzUhu1/wDGgi7Ttwt/UnuLC+RMxEgHfXYcrzxtNSMTZ5TavBzmZbCE kQFXjHIZSSXynOSzLCWivvMu7ewt8HKSyeQCIY6OzQBU/643knVEGeKbVP/a2EU4Bo6orI6piPOT1 qsJBcHvg==; Received: from authenticated user by zero.zsh.org with local id 1lslX3-000N7s-FX; Mon, 14 Jun 2021 12:17:33 +0000 Authentication-Results: zsh.org; iprev=pass (relay8-d.mail.gandi.net) smtp.remote-ip=217.70.183.201; dmarc=none header.from=chazelas.org; arc=none Received: from relay8-d.mail.gandi.net ([217.70.183.201]:38987) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1lslWp-000Mp7-UD; Mon, 14 Jun 2021 12:17:20 +0000 Received: (Authenticated sender: stephane@chazelas.org) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id 04EB81BF20F for ; Mon, 14 Jun 2021 12:17:18 +0000 (UTC) Date: Mon, 14 Jun 2021 13:17:17 +0100 From: Stephane Chazelas To: zsh-workers@zsh.org Subject: Re: zsh/stat: output file birth time under Linux Message-ID: <20210614121717.txix5m7hlwc3k2ku@chazelas.org> 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> X-Seq: 49074 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: 2021-06-14 14:09:03 +0200, Vincent Lefevre: > Could zsh/stat output birth time under Linux, like what stat from > the GNU coreutils does? [...] +1 Adding corresponding glob qualifiers (filter and sort), and to whereever mtime/atime/ctime are also used would also make sense. On Linux, you need the statx() API which has been relatively recently added to the kernel (and even more recently to glibc, not sure about other libcs). See https://unix.stackexchange.com/questions/304779/is-there-still-no-linux-kernel-interface-to-get-file-creation-date/452058#452058 Other Unices including FreeBSD/macOS have had APIs for that for a long time, I don't think there's much standardisation though. -- Stephane