Function bash_builtins::variables::set
source · pub fn set<T>(name: &str, value: T) -> Result<(), VariableError>where
T: AsRef<[u8]>,Expand description
Sets the value of the shell variable referenced by name.
value is not required to be valid UTF-8, but it can’t contain any nul
byte.