home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
262.lha
/
ArpDoc_v1.3
/
Set
< prev
next >
Wrap
Text File
|
1989-07-01
|
3KB
|
133 lines
Set(V1.3) ARP User's Manual Set(V1.3)
NAME
Set - Set or clear the value of an environment variable.
SYNOPSIS
Set Variable=Value/... ESCAPE/k BCPL/k LISTALL/s
DESCRIPTION
The ARP Set command allows you to manipulate the old format
MANX/Rokiki environment variables. These are different from
environment variables created with the new V1.3 "SetEnv" and
"GetEnv" commands. Programs which use the arp.library
environment variables will be able to read variables set by
either "Set" or "Setenv".
To set the value of an environment variable, simply use SET
VARNAME=VAL, which sets the value of VARNAME to VAL. To
remove this environment variable do Set VARNAME= or Set
VARNAME. There is no limit to the number of variables you
can set and clear with one command. You can intermix
setting and clearing variables on the same command line.
To view the values of all current environment variables,
simply use Set without any arguments.
You can use spaces in your variable names and values, but it
is not generally a good idea. If you do use spaces, you
must surround the complete expression with double quotes,
i.e., "Variable Name=Variable Value". Note that the similar
looking expression "Variable Name = Variable Value" has
hidden spaces. The Variable ends with a space, and the
value begins with one. This is only one example of how
problematical spaces in environment variables and values can
become.
Set also has special features for setting the Escape
character and increasing the amount of BCPL compatibility.
You can set the current escape character by using the ESCAPE
<char> keyword.
One source of problems with old script files and ARP is the
use of the star "*" to refer to the current window. ARP
programs tend to regard the star "*" as a wildcard, as is
common. If you use the BCPL keyword to do SET BCPL TRUE,
those programs which tend to have problems with this will
attempt to overlook the "*" as a wildcard.
Finally, you can get a listing of all variables, including
the values of ESCAPE and BCPL by using the keyword LISTALL.
EXAMPLE
Set DODAH=SONG dateformat=0 copyflags= ESCAPE \
The command line above creates or redefines the variable
DODAH to have the value SONG, dateformat to have the value
Page 1 (printed 4/28/89)
Set(V1.3) ARP User's Manual Set(V1.3)
0, removes the variable copyflags from the environment, and
sets the current ESCAPE character to \.
ADDITIONAL CONSIDERATIONS
The ARP Shell also has builtin environment variable
expansion and assignment features.
Page 2 (printed 4/28/89)