Hi Bruno,
While reviewing your Coreutils 'date' patch, I skimmed some of the
linked gettext manual. I noticed this text [1]:
At the shell prompt, merely execute ‘setenv LANG de_DE’ (in csh),
‘export LANG; LANG=de_DE’ (in sh) or ‘export LANG=de_DE’ (in bash).
I had assumed the sh/bash distinction enough was old enough to get rid
of. As far as I can tell, export with the assignment has been supported
since XPG4 [2].
But on Solaris 10 (cfarm210), we can see /bin/sh is missing this
feature:
$ export A=B
A=B: is not an identifier
The /usr/xpg4/bin/sh (not sure if Solaris comes with this) shell does
support it though:
$ export A=B
$ env | grep ^A
A=B
Do you think a test for that is worth adding to your
maint-tools/test-programs/sh-features script? I would do it myself, but
don't have an old FreeBSD VM/machine or old bash installs...
Collin
[1]
https://www.gnu.org/software/gettext/manual/html_node/Setting-the-POSIX-Locale.html
[2] I couldn't find the documentation in HTML, so see § 2.14.8:
https://pubs.opengroup.org/onlinepubs/009656399/toc.pdf