From: Phil Pennock <zsh-workers+phil.pennock@spodhuis.org>
To: zsh-workers@zsh.org
Subject: Re: zsh/stat: output file birth time under Linux
Date: Mon, 14 Jun 2021 14:50:19 -0400 [thread overview]
Message-ID: <YMek63ecXS2A266/@fullerene.field.pennock-tech.net> (raw)
In-Reply-To: <20210614120903.GA3136251@cventin.lip.ens-lyon.fr>
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
next prev parent reply other threads:[~2021-06-14 18:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-14 12:09 Vincent Lefevre
2021-06-14 12:17 ` Stephane Chazelas
2021-06-14 19:47 ` Stephane Chazelas
2021-06-14 18:50 ` Phil Pennock [this message]
2021-06-14 20:05 ` Stephane Chazelas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YMek63ecXS2A266/@fullerene.field.pennock-tech.net \
--to=zsh-workers+phil.pennock@spodhuis.org \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).