On 14/04/2023 18:25, наб wrote:
Package: coreutils
Version: 9.1-1
Severity: minor
Dear Maintainer,
Quoth stat(1):
-- >8 --
NOTE: your shell may have its own version of stat, which usually
supersedes the version described here. Please
refer to your shell's documentation for details about the options it
supports.
-- >8 --
An apt list | grep sh/unstable filtered to "is a shell" gives me
-- >8 --
bash/unstable,now 5.2.15-2+b1 x32 [installed]
csh/unstable 20110502-7 x32
dash/unstable,now 0.5.12-2 x32 [installed]
fish/unstable 3.6.0-3 x32
mksh/unstable 59c-27 x32
posh/unstable 0.14.1 x32
rush/unstable 2.3-1 x32
sash/unstable 3.8-5+b9 x32
tcsh/unstable 6.24.07-1 x32
yash/unstable 2.52-2 x32
zsh/unstable 5.9-4 x32
-- >8 --
and
$ for sh in bash dash fish mksh posh sash tcsh yash zsh; do echo $sh; $sh -c
'type stat'; done
bash
stat is /bin/stat
dash
stat is /bin/stat
fish
stat is /bin/stat
mksh
stat is a tracked alias for /bin/stat
yash
stat: an external command at /bin/stat
zsh
stat is /bin/stat
csh and tcsh
Don't have type, strace says "stat ." execs stat.
posh
No type, no stat builtin.
sash
No type; has a lot of stuff built in, not stat tho.
rush
idk; source doesn't have "stat" anywhere so probably no
I thought this was either ancient bash or ksh tech,
but it's not in 1.14.4-2 or as far back as the illumos-gate ksh goes.
Probably axe it?
Maybe.
The warning was added in 2005 without mentioning specific shells:
https://github.com/coreutils/coreutils/commit/d209b0f75
I see zsh has a stat module:
https://zsh.sourceforge.io/Doc/Release/Zsh-Modules.html#The-zsh_002fstat-Module
I also see a bash stat loadable:
http://git.savannah.gnu.org/gitweb/?p=bash.git;a=blob;f=examples/loadables/stat.c;hb=HEAD
Though if we're considering loadables,
then that would cover most commands.
It might be best to remove this warning indeed.
cheers,
Pádraig