declared (1) --- test for declared variables 02/22/82 _U_s_a_g_e declared [] _D_e_s_c_r_i_p_t_i_o_n 'Declared' tests for the existence of a shell variable named . If the variable exists, 'declared' prints "1"; otherwise it prints "0". If is omitted, 'declared' examines all lexic levels for . Otherwise, only the level specified ( - ) is searched. (See 'arg' for a more complete discussion of the mechanism.) _E_x_a_m_p_l_e_s if [declared se_params] se_params else echo "" fi _S_e_e _A_l_s_o vars (1), arg (1), set (1), forget (1), save (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 declared (1) - 1 - declared (1)