[Bug 2122363] [NEW] cp -T: prefix not found

Dan Bungert 2122363 at bugs.launchpad.net
Mon Sep 8 19:59:28 UTC 2025


Public bug reported:

with rust-coreutils, -T fails to behave like gnucp when using it to copy
a source directory to a target location and that location doesn't exist
yet.

```
#!/bin/bash
set -eux

rm -fr src dst

mkdir src
touch src/file.txt

/usr/lib/cargo/bin/coreutils/cp -aT src dst

[ -f dst/file.txt ]
```

Workarounds:
* remove -T from the cp invocation
* also mkdir dst before the cp invocation

** Affects: rust-coreutils (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to rust-coreutils in Ubuntu.
https://bugs.launchpad.net/bugs/2122363

Title:
  cp -T: prefix not found

Status in rust-coreutils package in Ubuntu:
  New

Bug description:
  with rust-coreutils, -T fails to behave like gnucp when using it to
  copy a source directory to a target location and that location doesn't
  exist yet.

  ```
  #!/bin/bash
  set -eux

  rm -fr src dst

  mkdir src
  touch src/file.txt

  /usr/lib/cargo/bin/coreutils/cp -aT src dst

  [ -f dst/file.txt ]
  ```

  Workarounds:
  * remove -T from the cp invocation
  * also mkdir dst before the cp invocation

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rust-coreutils/+bug/2122363/+subscriptions




More information about the foundations-bugs mailing list