Skip to content

Commit e85ddf8

Browse files
author
梶塚太智
committed
Update main.rs
1 parent 79e93ff commit e85ddf8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/main.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,12 @@ impl Executor {
548548
.hidden(false)
549549
.print_commands(false)
550550
.build();
551-
let _ = ps.run(self.pop_stack().get_string().as_str());
551+
let result = ps
552+
.run(self.pop_stack().get_string().as_str())
553+
.unwrap()
554+
.stdout()
555+
.unwrap();
556+
self.stack.push(Type::String(result));
552557
}
553558

554559
// プロセスを終了

0 commit comments

Comments
 (0)