http://www.aros.org AROS-Exec AROS-Exec Archives Power2People
kitty mascottop logo menu

Setenv

Index Prev Next


Name

Setenv

Synopsis

NAME,SAVE/S,STRING/F

Function

Sets a global variable from the current shell. These variables can
be accessed from any program executing at any time.

These variables are usually not saved in the ENVARC: directory, hence they
can only be used by programs during the current execution of the
operating system. When using SAVE argument, the variable is also saved
in ENVARC:

If no parameters are specified, the current list of global variables
are displayed.

Inputs

NAME    - The name of the global variable to set.

SAVE    - Save the variable also in ENVARC:

STRING  - The value of the global variable NAME.

Result

Standard DOS error codes.

Example

Setenv EDITOR Ed

    Any program that accesses the variable "EDITOR" will be able to
    find out the name of the text-editor the user would like to use,
    by examining the contents of the variable.

Copyright © 1995-2024, The AROS Development Team. All rights reserved.
Amiga® is a trademark of Amiga Inc. All other trademarks belong to their respective owners.