clean up. more cp. mkdir. more test coverage. fixes.

- Introduced mkdir.
- Minor more labelled error improvements.
- Fix to avoid leaking child zombies.
- cp improvements.
- Introduced mkdir.
This commit is contained in:
Andrés N. Robalino
2019-08-07 09:45:50 -05:00
parent c8b5329c5c
commit e0bacaaf37
6 changed files with 403 additions and 109 deletions

View File

@ -34,7 +34,6 @@ impl Command for Mkdir {
pub fn mkdir(args: CommandArgs) -> Result<OutputStream, ShellError> {
let env = args.env.lock().unwrap();
let path = env.path.to_path_buf();
let cwd = path.clone();
let mut full_path = PathBuf::from(path);
match &args.nth(0) {