quote (1) --- enquote strings from standard input 02/22/82 _U_s_a_g_e quote _D_e_s_c_r_i_p_t_i_o_n 'Quote' supplies one layer of quotes around strings present on its standard input. It is useful in function calls, to prevent premature evaluation of text by the command interpreter. For example, suppose the string "# [a-d]" were specified as an argument in the invocation of a command file which, in turn, passed the string as an argument to another program or command file. The first command file might access the string using the 'arg' command in a func- tion call: [arg 1] However, to prevent the meta-characters "#", "[" and "]" from being interpreted by the shell after the evaluation of the function, the following function call should be used instead: [arg 1 | quote] The string will then be quoted before being substituted back into the command line containing the function call, and the meta-characters will not be evaluated. The result of a function call is quoted automatically by the shell if the variable '_quote_opt' contains the string "YES". This, however, is not the default setting. _E_x_a_m_p_l_e_s to ics002 [args | quote] echo [arg 1 | quote] >request_file _B_u_g_s Depends on having both ' and " available as quoting charac- ters. Is probably too smart for general application, but under- stands the shell's quoting requirements quite well. quote (1) - 1 - quote (1) quote (1) --- enquote strings from standard input 02/22/82 _S_e_e _A_l_s_o sh (1), arg (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 quote (1) - 2 - quote (1)