pub fn escape_into<T: Into<OsString>>(s: T, sout: &mut Vec<u8>)
Expand description

Escape a string of bytes into an existing Vec<u8>.

See escape for more details.

Examples

let mut buf = Vec::with_capacity(128);
bash::escape_into("foobar", &mut buf);
buf.push(b' ');  // Add a space.
bash::escape_into("foo bar", &mut buf);
assert_eq!(buf, b"foobar $'foo bar'");