/// build the token which can be used to launch en executable.
/// This doesn't make sense for a built-in.
build the token which can be used to launch en executable.
This doesn't make sense for a built-in.
build the token which can be used to launch en executable . This doesn ' t make sense for a built - in .
pub fn exec_token(&self, file: &Path, args: &Option<String>) -> Vec<String> {
        let map = self.replacement_map(file, args, false);
        self.execution
            .split_whitespace()
            .map(|token| {
                GROUP
                    .replace_all(token, |ec: &Captures<'_>| {
                        do_exec_replacement(ec, &map)
                    })
                    .to_string()
            })
            .collect()
    }
pub fn exec_token ( & self , file : & Path , args : & Option < String > ) -> Vec < String > { let map = self . replacement_map ( file , args , false ) ; self . execution . split_whitespace ( ) . map ( | token | { GROUP . replace_all ( token , | ec : & Captures < ' _ > | { do_exec_replacement ( ec , & map ) } ) . to_string ( ) } ) . collect ( ) }
build the token which can be used to launch en executable.
build the token which can be used to launch en executable .
&self
file
&Path
args
&Option<String>