use std::sync::LazyLock; fn default_shell() -> &'static str { static SH: LazyLock = LazyLock::new(|| gix_path::env::shell_command().get_program().to_owned()); SH.to_str() .expect("`prepare` tests must be run where 'sh' path is valid Unicode") } // The basename of the default shell, used as the `command_name` operand // after `-c