Skip to content

cp: Usage of --recursive multiple times #5027

@TheDcoder

Description

@TheDcoder

It seems GNU coreutils doesn't mind if the user uses the recursive argument multiple times, this leads to incompatibility with our implementation since we reject it:

error: the argument '--recursive' cannot be used multiple times

I found this issue while using this script which calls cp like this:

cp -r "${srcdir}/${_pkg}/"* "${pkgdir}/opt/${_pkgname}" -R

I'm not sure why it's being used like that but it works with GNU coreutils.

This issue might be more widespread as I expect other GNU utils to follow the same lenient behavior regarding arguments which set a flag.

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