Long variable issue

Bill Campbell bill at celestial.com
Wed Feb 3 13:20:49 PST 2021


On Wed, Feb 03, 2021, Richard Kreiss via Filepro-list wrote:
>Ernie,
>
>This just doesn't even come close to answering my question.  Why is the
>declared value not able to accept the value of getenv()?
>If:
>Then: declare uname
>If" uname= ""
>Then: uname=getenv("username") - in this instance uname should have rkreiss
>as value.

Is the username environment variable something you set other than
what the system does on login?

Looking at my Linux and an OpenServer system, there are two
environment variables set, USER=bill and LOGNAME=bill (all
uppercase).

Bill
-- 
INTERNET:   bill at celestial.com  Bill Campbell; Celestial Software LLC
URL: http://www2.celestial.com/ 6641 E. Mercer Way
Mobile:         (206) 947-5591  PO Box 820
Fax:            (206) 232-9186  Mercer Island, WA 98040-0820

Vices are those acts by which a man harms himself or his property.
Crimes are those acts by which one man harms the person or property of
another.  -- Lysander Spooner ``Vices are not Crimes''


More information about the Filepro-list mailing list