getenv

Daniel L Newhouse <[email protected]> Wed, 12 May 2021 11:35:38 -0500
Newsgroups alt.comp.cygwin
Organization Forte - www.forteinc.com
Message-ID <[email protected]>
If you use the default startup scripts 

Prompt is control via a special shell variable. You need to set PS1,
PS2, PS3 and PS4 variable. If set, the value is executed as a command
prior to issuing each primary prompt.

    PS1 – The value of this parameter is expanded (see PROMPTING
below) and used as the primary prompt string. The default value is
\s-\v\$ .
    PS2 – The value of this parameter is expanded as with PS1 and used
as the secondary prompt string. The default is >
    PS3 – The value of this parameter is used as the prompt for the
select command
    PS4 – The value of this parameter is expanded as with PS1 and the
value is printed before each command bash displays during an execution
trace. The first character of PS4 is replicated multiple times, as
necessary, to indicate multiple levels of indirection. The default is
+

The syntax becomes getenv $environment variable

rather than

getenv environment variable