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