pub struct RuntimeOptions {Show 82 fields
pub export_variables_on_modification: bool,
pub notify_job_termination_immediately: bool,
pub exit_on_nonzero_command_exit: bool,
pub disable_filename_globbing: bool,
pub remember_command_locations: bool,
pub place_all_assignment_args_in_command_env: bool,
pub enable_job_control: bool,
pub do_not_execute_commands: bool,
pub real_effective_uid_mismatch: bool,
pub exit_after_one_command: bool,
pub treat_unset_variables_as_error: bool,
pub print_shell_input_lines: bool,
pub print_commands_and_arguments: bool,
pub perform_brace_expansion: bool,
pub disallow_overwriting_regular_files_via_output_redirection: bool,
pub shell_functions_inherit_err_trap: bool,
pub enable_bang_style_history_substitution: bool,
pub do_not_resolve_symlinks_when_changing_dir: bool,
pub shell_functions_inherit_debug_and_return_traps: bool,
pub emacs_mode: bool,
pub enable_command_history: bool,
pub ignore_eof: bool,
pub return_first_failure_from_pipeline: bool,
pub posix_mode: bool,
pub vi_mode: bool,
pub assoc_expand_once: bool,
pub auto_cd: bool,
pub cdable_vars: bool,
pub cd_autocorrect_spelling: bool,
pub check_hashtable_before_command_exec: bool,
pub check_jobs_before_exit: bool,
pub check_window_size_after_external_commands: bool,
pub save_multiline_cmds_in_history: bool,
pub compat31: bool,
pub compat32: bool,
pub compat40: bool,
pub compat41: bool,
pub compat42: bool,
pub compat43: bool,
pub compat44: bool,
pub quote_all_metachars_in_completion: bool,
pub expand_dir_names_on_completion: bool,
pub autocorrect_dir_spelling_on_completion: bool,
pub glob_matches_dotfiles: bool,
pub exit_on_exec_fail: bool,
pub expand_aliases: bool,
pub enable_debugger: bool,
pub extended_globbing: bool,
pub extquote: bool,
pub fail_expansion_on_globs_without_match: bool,
pub force_fignore: bool,
pub glob_ranges_use_c_locale: bool,
pub enable_star_star_glob: bool,
pub errors_in_gnu_format: bool,
pub append_to_history_file: bool,
pub allow_reedit_failed_history_subst: bool,
pub allow_modifying_history_substitution: bool,
pub enable_hostname_completion: bool,
pub send_sighup_to_all_jobs_on_exit: bool,
pub command_subst_inherits_errexit: bool,
pub interactive_comments: bool,
pub run_last_pipeline_cmd_in_current_shell: bool,
pub embed_newlines_in_multiline_cmds_in_history: bool,
pub local_vars_inherit_value_and_attrs: bool,
pub localvar_unset: bool,
pub login_shell: bool,
pub mail_warn: bool,
pub no_empty_cmd_completion: bool,
pub case_insensitive_pathname_expansion: bool,
pub case_insensitive_conditionals: bool,
pub expand_non_matching_patterns_to_null: bool,
pub programmable_completion: bool,
pub programmable_completion_alias: bool,
pub expand_prompt_strings: bool,
pub restricted_shell: bool,
pub shift_verbose: bool,
pub source_builtin_searches_path: bool,
pub echo_builtin_expands_escape_sequences: bool,
pub interactive: bool,
pub read_commands_from_stdin: bool,
pub sh_mode: bool,
pub max_function_call_depth: Option<usize>,
}Expand description
Runtime changeable options for a shell instance.
Fields§
§export_variables_on_modification: bool-a
notify_job_termination_immediately: bool-b
exit_on_nonzero_command_exit: bool-e
disable_filename_globbing: bool-f
remember_command_locations: bool-h
place_all_assignment_args_in_command_env: bool-k
enable_job_control: bool-m
do_not_execute_commands: bool-n
real_effective_uid_mismatch: bool-p
exit_after_one_command: bool-t
treat_unset_variables_as_error: bool-u
print_shell_input_lines: bool-v
print_commands_and_arguments: bool-x
perform_brace_expansion: bool-B
disallow_overwriting_regular_files_via_output_redirection: bool-C
shell_functions_inherit_err_trap: bool-E
enable_bang_style_history_substitution: bool-H
do_not_resolve_symlinks_when_changing_dir: bool-P
shell_functions_inherit_debug_and_return_traps: bool-T
emacs_mode: bool‘emacs’
enable_command_history: bool‘history’
ignore_eof: bool‘ignoreeof’
return_first_failure_from_pipeline: bool‘pipefail’
posix_mode: bool‘posix’
vi_mode: bool‘vi’
assoc_expand_once: boolassoc_expand_once
auto_cd: bool‘autocd’
cdable_vars: boolcdable_vars
cd_autocorrect_spelling: bool‘cdspell’
check_hashtable_before_command_exec: bool‘checkhash’
check_jobs_before_exit: bool‘checkjobs’
check_window_size_after_external_commands: bool‘checkwinsize’
save_multiline_cmds_in_history: bool‘cmdhist’
compat31: bool‘compat31’
compat32: bool‘compat32’
compat40: bool‘compat40’
compat41: bool‘compat41’
compat42: bool‘compat42’
compat43: bool‘compat43’
compat44: bool‘compat44’
quote_all_metachars_in_completion: boolcomplete_fullquote
expand_dir_names_on_completion: bool‘direxpand’
autocorrect_dir_spelling_on_completion: bool‘dirspell’
glob_matches_dotfiles: bool‘dotglob’
exit_on_exec_fail: bool‘execfail’
expand_aliases: boolexpand_aliases
enable_debugger: bool‘extdebug’
extended_globbing: bool‘extglob’
extquote: bool‘extquote’
fail_expansion_on_globs_without_match: bool‘failglob’
force_fignore: boolforce_fignore
glob_ranges_use_c_locale: bool‘globasciiranges’
enable_star_star_glob: bool‘globstar’
errors_in_gnu_format: boolgnu_errfmt
append_to_history_file: bool‘histappend’
allow_reedit_failed_history_subst: bool‘histreedit’
allow_modifying_history_substitution: bool‘histverify’
enable_hostname_completion: bool‘hostcomplete’
send_sighup_to_all_jobs_on_exit: bool‘huponexit’
command_subst_inherits_errexit: boolinherit_errexit
interactive_comments: boolinteractive_comments
run_last_pipeline_cmd_in_current_shell: bool‘lastpipe’
embed_newlines_in_multiline_cmds_in_history: bool‘lithist’
local_vars_inherit_value_and_attrs: boollocalvar_inherit
localvar_unset: boollocalvar_unset
login_shell: boollogin_shell
mail_warn: bool‘mailwarn’
no_empty_cmd_completion: boolno_empty_cmd_completion
case_insensitive_pathname_expansion: bool‘nocaseglob’
case_insensitive_conditionals: bool‘nocasematch’
expand_non_matching_patterns_to_null: bool‘nullglob’
programmable_completion: bool‘progcomp’
programmable_completion_alias: boolprogcomp_alias
expand_prompt_strings: bool‘promptvars’
restricted_shell: boolrestricted_shell
shift_verbose: boolshift_verbose
source_builtin_searches_path: boolsourcepath
echo_builtin_expands_escape_sequences: boolxpg_echo
interactive: boolWhether or not the shell is interactive.
read_commands_from_stdin: boolWhether or not the shell is reading commands from standard input.
sh_mode: boolWhether or not the shell is in maximal sh compatibility mode.
max_function_call_depth: Option<usize>Maximum function call depth.
Implementations§
Source§impl RuntimeOptions
impl RuntimeOptions
Sourcepub fn defaults_from(create_options: &CreateOptions) -> Self
pub fn defaults_from(create_options: &CreateOptions) -> Self
Creates a default set of runtime options based on the given creation options.
§Arguments
create_options- The options used to create the shell.
Sourcepub fn option_flags(&self) -> String
pub fn option_flags(&self) -> String
Returns a string representing the current set-style option flags set in the shell.
Sourcepub fn seto_optstr(&self) -> String
pub fn seto_optstr(&self) -> String
Returns a colon-separated list of sorted ‘set -o’ options enabled.
Sourcepub fn shopt_optstr(&self) -> String
pub fn shopt_optstr(&self) -> String
Returns a colon-separated list of sorted ‘shopt’ options enabled.
Trait Implementations§
Source§impl Clone for RuntimeOptions
impl Clone for RuntimeOptions
Source§fn clone(&self) -> RuntimeOptions
fn clone(&self) -> RuntimeOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for RuntimeOptions
impl Default for RuntimeOptions
Source§fn default() -> RuntimeOptions
fn default() -> RuntimeOptions
Auto Trait Implementations§
impl Freeze for RuntimeOptions
impl RefUnwindSafe for RuntimeOptions
impl Send for RuntimeOptions
impl Sync for RuntimeOptions
impl Unpin for RuntimeOptions
impl UnwindSafe for RuntimeOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more