1use shellver::Shell; 2 3fn main() -> std::io::Result<()> { 4 let shell = Shell::detect()?; 5 let name = shell.name(); 6 let ver = shell.version().unwrap_or_else(|| "unknown".to_string()); 7 println!("{name} {ver}"); 8 Ok(()) 9}