Add sys_dup && support input/output redirection in user_shell

This commit is contained in:
Yifan Wu 2021-02-27 22:27:08 +08:00
parent ff685b86c8
commit 685ca2c1ea
6 changed files with 93 additions and 13 deletions

View file

@ -10,7 +10,7 @@ extern crate user_lib;
pub fn main(argc: usize, argv: &[&str]) -> i32 {
println!("argc = {}", argc);
for i in 0..argc {
println!("argc[{}] = {}", i, argv[i]);
println!("argv[{}] = {}", i, argv[i]);
}
0
}