Skip to content

cp: -vr outputs absolute source path for files #8867

Description

@cakebaker

While reviewing #8864 I noticed that we output, with -vr, absolute source paths for files whereas GNU cp outputs relative paths.

With GNU cp:

$ mkdir -p foo/bar
$ touch foo/a.txt
$ cp -vr foo dest
'foo' -> 'dest'
'foo/bar' -> 'dest/bar'
'foo/a.txt' -> 'dest/a.txt'

And with uutils cp:

$ mkdir -p foo/bar
$ touch foo/a.txt
$ cargo run -q cp -vr foo dest
'foo' -> 'dest/'
'foo/bar' -> 'dest/bar'
'/home/dho/projects/coreutils/foo/a.txt' -> 'dest/a.txt'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions