pub fn read_script_file(path: impl AsRef<Path>) -> Result<String>Expand description
Read a script file as raw bytes and decode it losslessly.
Replaces fs::read_to_string on every path that loads shell CODE
(zshrs FILE, source/., autoload, stuff, $(< FILE)).
read_to_string rejected the ENTIRE file on the first invalid
byte, which surfaced as a hard error for a script argument and as
a SILENT no-op for source and autoload.