

            svsave (2) --- save shell variables in a file            05/27/83


          | _C_a_l_l_i_n_g _I_n_f_o_r_m_a_t_i_o_n

          |      integer function svsave (file, trace)
          |      character file (ARB)
          |      bool trace

          |      Library:  vshlib (shell routine library)


          | _F_u_n_c_t_i_o_n

          |      'Svsave'  takes  the  shell  variables  at lexic level 1 and
          |      writes them to 'file'.  Setting 'trace' produces a trace  of
          |      the  variables being saved on the users terminal.  The trace
          |      consists of the name of each variable being  saved  followed
          |      by  its  value.   The function returns ERR if the file could
          |      not be opened and OK otherwise.


          | _I_m_p_l_e_m_e_n_t_a_t_i_o_n

          |      If the file can't be opened, then the  function  returns  an
          |      error;  otherwise,  the  current level of shell variables is
          |      traversed and written to the file.


          | _A_r_g_u_m_e_n_t_s _M_o_d_i_f_i_e_d

          |      none


          | _C_a_l_l_s

          |      close, open, print, putch, putlin, trunc


          | _S_e_e _A_l_s_o

          |      other sv?* routines (2)



















            svsave (2)                    - 1 -                    svsave (2)


