pub struct Expansion {
pub commands: Vec<String>,
pub dynamic: bool,
pub nested: bool,
pub arguments_dynamic: bool,
pub control: bool,
pub redirects: bool,
}Expand description
The commands a shell line would run, plus what could not be resolved.
Fields§
§commands: Vec<String>Every command line found, as expanded_commands returns them.
dynamic: boolA command word (or a shell’s script) is only known at run time, so no deny rule can be matched against it reliably.
nested: boolSome code runs nested inside another command: a command or process
substitution, eval, a shell -c payload or stdin script, or a
find -exec payload.
arguments_dynamic: boolAn argument’s value is resolved only at execution time. A prefix grant
cannot check whether that value introduces a write/execute option.
Unlike dynamic, this does not make the command head unknowable.
control: boolUnquoted control operators or grouping. Recorded before command
deduplication: echo x; echo x still contains a command list.
redirects: boolUnquoted redirection syntax, including descriptor duplication and heredocs. Quoted operator characters and heredoc body data are excluded.
Trait Implementations§
impl Eq for Expansion
impl StructuralPartialEq for Expansion
Auto Trait Implementations§
impl Freeze for Expansion
impl RefUnwindSafe for Expansion
impl Send for Expansion
impl Sync for Expansion
impl Unpin for Expansion
impl UnsafeUnpin for Expansion
impl UnwindSafe for Expansion
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.