mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 12:07:46 +00:00
commit
79529d456f
1 changed files with 1 additions and 1 deletions
2
cp/cp.rs
2
cp/cp.rs
|
@ -83,7 +83,7 @@ fn copy(matches: getopts::Matches) {
|
||||||
fail!()
|
fail!()
|
||||||
} else {
|
} else {
|
||||||
// All but the last argument:
|
// All but the last argument:
|
||||||
matches.free.slice(0, matches.free.len() - 2).iter()
|
matches.free.slice(0, matches.free.len() - 1).iter()
|
||||||
.map(|arg| Path::new(arg.clone())).collect()
|
.map(|arg| Path::new(arg.clone())).collect()
|
||||||
};
|
};
|
||||||
let dest = if matches.free.len() < 2 {
|
let dest = if matches.free.len() < 2 {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue