On 7/25/25 11:46 PM, Collin Funk wrote:
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:

Solaris sh is the original SVR4 sh, which doesn't have 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:

That's the Solaris XPG4/Posix sh, derived from ksh88.


[2] I couldn't find the documentation in HTML, so see § 2.14.8:
https://pubs.opengroup.org/onlinepubs/009656399/toc.pdf


https://pubs.opengroup.org/onlinepubs/9799919799/utilities/contents.html


--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    c...@case.edu    http://tiswww.cwru.edu/~chet/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to