pub struct Command { command: String, sub_command: String, option: Vec<String>, path: String, index: usize, pipe: Option<Box<CommandParse>>, redirect: Option<Redirect>, } fn judge_loop(&mut self, mut line_split: &mut Vec<&str>) { self.index += 1; let line_index = line_split.len(); //配列の先頭は実行するコマンド self.command = line_split[0].to_string(); loop { if line_index <= self.index { break; } self.judge(&m