Command Reference2. FPGA Express Shell Commands printvar _N_A_M_E printvar Prints the values of one or more variables. SYNTAX string printvar [_p_a_t_t_e_r_n] [-user_defined] [- application] string _p_a_t_t_e_r_n ARGUMENTS _p_a_t_t_e_r_n Variable names which match _p_a_t_t_e_r_n will be printed. The optional _p_a_t_t_e_r_n argument can include the wildcard characters "*" and "?". If omitted, all variables are printed. -user_defined Show only user-defined variables. If combined with -application, the behavior is as though neither option was used. -application Show only application variables. If combined with -user_defined, the behavior is as though neither option was used. DESCRIPTION The printvar command prints the values of one or more variables. If the _p_a_t_t_e_r_n argument is not specified, the command prints out the values of all the variables (both application and user defined variables). The -user_defined option limits the variables to those which you have defined. The -application option limits the variables to those created by the application. If both options are used, they cancel each other out. Some variables are suppressed from the output of printvar. For example, the Tcl environment variable array _e_n_v is not shown. In order to see the environment variables, use the printenv command. Also, the Tcl variable _e_r_r_o_r_I_n_f_o is not shown. To see the error stack, use the error_info command. EXAMPLES The following command prints the values of all the variables. v3.0 Synopsys Inc. 1988-1998. All rights reserved. 2-1 printvar 2. FPGA Express Shell Commands Command Reference prompt> printvar The following command prints the values of all applcation variables that match the pattern sh*a*. prompt> printvar -application sh*a* sh_arch = "sparcOS5" sh_command_abbrev_mode = "Anywhere" sh_enable_page_mode = "false" sh_new_variable_message = "false" sh_new_variable_message_in_proc = "false" sh_source_uses_search_path = "false" The following command prints the value of the variable search_path. prompt> printvar search_path search_path = ". /designs/newcpu/v1.6 /lib/cmos" The following command prints the value of the user defined variables. prompt> printvar -user_defined a = "6" designDir = "/u/designs" SEE ALSO error_info, _p_r_i_n_t_e_n_v, _s_e_t, _u_n_s_e_t. 2-2 Synopsys Inc. 1988-1998. All rights reserved. v3.0