

            vars (1) --- print, save, or restore shell variables     08/27/84


          | _U_s_a_g_e

                 vars [ -{v | c | g | a | l} ] [-r [<file>] | -s [<file>]]


            _D_e_s_c_r_i_p_t_i_o_n

                 'Vars'  can  be  used  to  print the names and values of all
                 currently defined shell variables, save the variables  in  a
                 file,  or  restore  them  from  a  file.   The  options have
                 meanings as follows:

          |           -v   Values.  Print the value of each variable as  well
          |                as its name.

          |           -c   Columnar.   Print  information in a single column,
          |                instead of across the  page  (similar  to  the  -c
                           option of 'lf').

          |           -g   Global.   Print  names of all global variables, as
          |                well as those on the current nesting level.

          |           -a   All.  Print names of all shell variables,  on  any
          |                nesting  level, including those beginning with "_"
                           (normally reserved for use by the shell).

          |           -l   Long.  Select options a, g, and v.

          |           -s   Save.  Save shell variables.  If a  file  name  is
          |                specified, variables and their values are saved in
                           the  given  file; otherwise, the file "=varsfile="
                           is used.  Only  level  1  (global)  variables  are
                           saved.  Listing of variable names and values still
                           occurs.

          |           -r   Restore.   Restore shell variables.  Variables and
          |                values from the named file (default  "=varsfile=")
                           are  merged  with  the  currently  active  set  of
                           variables, at the current nesting level.   Listing
                           of variable names and values still occurs.

                 If  no  options are specified, 'vars' lists the names of all
                 variables active at the current nesting level  in  a  multi-
                 column format.

                 For  more  information  on  shell  variables, see the 'set',
                 'declare' and 'forget' commands, or the _U_s_e_r_'_s _G_u_i_d_e _f_o_r _t_h_e
                 _S_o_f_t_w_a_r_e _T_o_o_l_s _S_u_b_s_y_s_t_e_m _C_o_m_m_a_n_d _I_n_t_e_r_p_r_e_t_e_r.


            _E_x_a_m_p_l_e_s

                 vars
                 vars -vc
                 vars -l
                 vars -s


            vars (1)                      - 1 -                      vars (1)




            vars (1) --- print, save, or restore shell variables     08/27/84


                 vars -s =varsdir=/environment
                 vars -r =varsdir=/environment


            _B_u_g_s

          |      Should print the mnemonic form of the variable names.


            _S_e_e _A_l_s_o

                 declare (1), forget (1),  set  (1),  _U_s_e_r_'_s  _G_u_i_d_e  _f_o_r  _t_h_e
                 _S_o_f_t_w_a_r_e _T_o_o_l_s _S_u_b_s_y_s_t_e_m _C_o_m_m_a_n_d _I_n_t_e_r_p_r_e_t_e_r













































            vars (1)                      - 2 -                      vars (1)


