Home Page The Club Computers News Links Glossary EYAWTK
Before Amiga Background ICS OCS ECS AGA ??? PPC
U-Boot SLB Linux Amiga OS Dual Boot Motherboards Peripherals Other
Initialisation Installation OS4 Updates About OS4 File Systems Networking Printing Other
Introduction File System Workbench Preferences Commands Error Msgs Miscellaneous

AmigaOS 4.0 - About OS4 - Commands

GETENV Internal
Purpose: Gets the value of a global variable.
Format: GETENV [<name>] [NOLINE]
Template: NAME/A, NOLINE/S
Path: Internal
GET is used to retrieve and display the value of a global environment variable. The value is displayed in the current output window or device. By default this is the screen, but it could be any device or file.

<name> is the name of the local environment variable to be retrieved. If a local environment variable with that name does not exist, an error message is displayed.

When the NOLINE option is specified, GETENV does not automatically move the cursor to the next line after displaying the string.

Global environment variables are stored in ENV: and are recognised by all Shells.

Example 1:

3.OS4:> GETENV Workbench

Example 2:

3.OS4:> GET Commodore
GETENV: object not found

See also: SETENV

Return to Commands Selection

Disclaimer: Amiga Auckland have prepared the above information for the use of its members based on our experiences and as such is subject to revision at any time. Amiga Auckland cannot guarantee any of the information and cannot be held accountable for any issues that may result from using it.

Copyright 2006 Amiga Auckland Inc. All rights reserved.
Revised: February 9, 2006.