[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
~60 global variables use by only one function in bash source
From: |
Peng Yu |
Subject: |
~60 global variables use by only one function in bash source |
Date: |
Fri, 18 Jan 2019 17:06:17 -0600 |
Hi,
I see these global or static variables (1st column) used only by one
function (2nd column). Some are from bash, some are from the libraries
that bash depends.
It seems to be problematic to declare variables global/static but only
to use them in one function. Should these variables be made local?
Thanks.
BC _rl_init_terminal_io
PC _rl_init_terminal_io
UP _rl_init_terminal_io
_rl_color_indicator _rl_parse_colors
_rl_complete_mark_symlink_dirs set_completion_defaults
_rl_completion_case_map complete_fncmp
_rl_echo_control_chars rl_echo_signal_char
_rl_enable_bracketed_paste rl_prep_terminal
_rl_enable_meta readline_internal_setup
_rl_interrupt_immediately rl_signal_handler
_rl_mark_modified_lines rl_redisplay
_rl_match_hidden_files rl_filename_completion_function
_rl_menu_complete_prefix_first rl_menu_complete
_rl_optimize_typeahead rl_insert
_rl_page_completions rl_display_match_list
_rl_print_completions_horizontally rl_display_match_list
_rl_revert_all_at_newline readline_internal_teardown
_rl_skip_completed_text insert_match
_rl_term_clrscroll _rl_init_terminal_io
_rl_term_pc _rl_init_terminal_io
alias_expand_all alias_expand
bash_copyright show_manpage
bash_getcwd_errstr get_working_directory
bash_license show_manpage
build_version make_vers_array
current_command_subst_pid command_substitute
debugging_login_shell main
dircomplete_expand_relpath bash_directory_completion_hook
dont_save_function_defs reset_shell_options
from_return_trap execute_function
funmap_program_specific_entry_start rl_initialize_funmap
history_multiline_entries read_history_range
history_no_expand_chars history_expand
line_number_base assign_lineno
localvar_unset makunbound
max_input_history stifle_history
optflags initialize_flags
pretty_print_mode main
progcomp_alias programmable_completions
release_status make_vers_array
rl_already_prompted readline_internal_setup
rl_change_environment _rl_get_screen_size
rl_complete_with_tilde_expansion rl_filename_completion_function
rl_completion_word_break_hook _rl_find_completion_word
rl_event_hook rl_read_key
rl_executing_key _rl_dispatch_subseq
rl_executing_keymap _rl_dispatch_subseq
rl_inhibit_completion rl_complete
rl_input_available_hook _rl_input_available
rl_pre_input_hook readline_internal_setup
rl_prefer_env_winsize _rl_get_screen_size
rl_visible_stats print_filename
saved_command_line_count edit_and_execute_command
sh_syntabsiz locale_setblanks
shell_script_filename main
sourcenest_max execute_builtin
terminate_immediately termsig_sighandler
the_printed_command_size the_printed_command_resize
this_shell_function execute_function
tilde_expansion_failure_hook tilde_expand_word
vi_insertion_keymap rl_vi_replace
yylval yyparse
yynerrs yyparse
--
Regards,
Peng
- ~60 global variables use by only one function in bash source,
Peng Yu <=