Skip to content

Commit

Permalink
Add debug code
Browse files Browse the repository at this point in the history
ryuichiueda committed Jan 23, 2025
1 parent 53ff0cc commit 1561b55
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/elements/subword/command.rs
Original file line number Diff line number Diff line change
@@ -19,6 +19,7 @@ impl Subword for CommandSubstitution {
fn boxed_clone(&self) -> Box<dyn Subword> {Box::new(self.clone())}

fn substitute(&mut self, _: &mut ShellCore) -> Result<(), ExecError> {
dbg!("{:?}", &self.text);
Ok(())
}
}
@@ -32,7 +33,7 @@ impl CommandSubstitution {

if let Some(pc) = ParenCommand::parse(feeder, core)? {
text += &pc.get_text();
Ok(Some(CommandSubstitution {text: text, command: pc} ))
Ok(Some(Self {text: text, command: pc} ))
}else{
Ok(None)
}

0 comments on commit 1561b55

Please sign in to comment.