diff --git a/src/shell/pipe.rs b/src/shell/pipe.rs index baf8375e886ade1444dad17f4d62c00745ed10a1..88789e21e9f300573761a6a6670826b3edf65afb 100644 --- a/src/shell/pipe.rs +++ b/src/shell/pipe.rs @@ -425,7 +425,11 @@ fn get_full_command(command: &Command) -> String { let mut output = String::from(&command[1..command.len()-1]); for argument in arg_iter { output.push(' '); - output.push_str(&argument[1..argument.len()-1]); + if argument.len() > 2 { + output.push_str(&argument[1..argument.len()-1]); + } else { + output.push_str(&argument); + } } output }