1set(1F)                          FMLI Commands                         set(1F)
2
3
4

NAME

6       set, unset - set and unset local or global environment variables
7

SYNOPSIS

9       set [-l variable [=value]] ...
10
11
12       set [-e variable [=value]] ...
13
14
15       set [-ffile variable [=value]]... ...
16
17
18       unset -l variable...
19
20
21       unset -f file variable...
22
23

DESCRIPTION

25       The  set  command  sets  variable  in  the  environment,  or adds vari‐
26       able=value to file. If variable is not  equated  it  to  a  value,  set
27       expects  the  value to be on stdin. The unset command removes variable.
28       Note that the FMLI predefined, read-only variables (such as ARG1),  may
29       not be set or unset.
30
31
32       Note that at least one of the above options must be used for each vari‐
33       able being set or unset. If you set  a  variable  with  the  -ffilename
34       option,  you  must  thereafter  include  filename in references to that
35       variable. For example, ${(file)VARIABLE}.
36
37
38       FMLI inherits the UNIX environment when invoked.
39

OPTIONS

41       -l        Sets or unsets the specified variable in the  local  environ‐
42                 ment.  Variables  set  with  -l will not be inherited by pro‐
43                 cesses invoked from FMLI.
44
45
46       -e        Sets the specified variable in the  UNIX  environment.  Vari‐
47                 ables  set with -e will be inherited by any processes started
48                 from FMLI. Note that these variables cannot be unset.
49
50
51       -ffile    Sets or unsets the specified variable in the global  environ‐
52                 ment.  The  argument file is the name, or pathname, of a file
53                 containing lines of the form  variable=value.  file  will  be
54                 created  if  it  does  not  already exist. Note that no space
55                 intervenes between -f and file.
56
57

EXAMPLES

59       Example 1 A sample output of set command.
60
61
62       Storing a selection made in a menu:
63
64
65         name=Selection 2
66         action=`set -l SELECTION=2`close
67
68
69

NOTES

71       Variables set to be available to the UNIX environment (those set  using
72       the  -e  option)  can  only be set for the current fmli process and the
73       processes it calls.
74
75
76       When using the -f option, unless file is unique to the  process,  other
77       users  of  FMLI  on the same machine will be able to expand these vari‐
78       ables, depending on the read/write permissions on file.
79
80
81       A variable set in one frame may be referenced or  unset  in  any  other
82       frame. This includes local variables.
83

ATTRIBUTES

85       See attributes(5) for descriptions of the following attributes:
86
87
88
89
90       ┌─────────────────────────────┬─────────────────────────────┐
91       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
92       ├─────────────────────────────┼─────────────────────────────┤
93       │Availability                 │SUNWcsu                      │
94       └─────────────────────────────┴─────────────────────────────┘
95

SEE ALSO

97       env(1), sh(1), attributes(5)
98
99
100
101SunOS 5.11                        5 Jul 1990                           set(1F)
Impressum