

            svput (2) --- set the value of a shell variable          05/27/83


          | _C_a_l_l_i_n_g _I_n_f_o_r_m_a_t_i_o_n

          |      integer function svput (name, value)
          |      character name (ARB), value (ARB)

          |      Library:  vshlib (shell routine library)


          | _F_u_n_c_t_i_o_n

          |      'Svput'  sets the value of existing shell variable 'name' or
          |      creates a new variable  with  the  specified  value  at  the
          |      current  lexic  level if 'name' does not already exist.  The
          |      function returns the lexic level of the  variable  that  was
          |      set.   If the variable controls a value kept in the SWT com-
          |      mon block, 'svput' updates the value in the common block  to
          |      reflect the new value of the variable.


          | _I_m_p_l_e_m_e_n_t_a_t_i_o_n

          |      If  the variable exists at any lexic level, 'svput' replaces
          |      the previous value.  If the variable does not exist, 'svput'
          |      calls 'svmake' to create the variable at the  current  lexic
          |      level.   If the variable controls a location in the SWT com-
          |      mon block, 'svput' saves the current value in the SWT common
          |      and copies the new value in its place.


          | _A_r_g_u_m_e_n_t_s _M_o_d_i_f_i_e_d

          |      none


          | _C_a_l_l_s

          |      svmake


          | _S_e_e _A_l_s_o

          |      other sv?* routines (2)
















            svput (2)                     - 1 -                     svput (2)


