Expand the commands.

This commit is contained in:
Oleksandr Kozachuk
2022-12-24 15:59:22 +01:00
parent 46fb2c6b40
commit b89dd0936e
+1 -1
View File
@@ -33,7 +33,7 @@ pub fn get_cmd_args_from_command(command: &str) -> io::Result<(String, Vec<Strin
)) ))
} }
}; };
Ok((args[0].clone(), args[1..].to_vec())) Ok((shellexpand::full(&args[0]).unwrap().into_owned(), args[1..].to_vec()))
} }
pub fn get_copy_command_from_env() -> (String, Vec<String>) { pub fn get_copy_command_from_env() -> (String, Vec<String>) {