Skip to content

install: should show the same error regardless of whether target ends with slash #5720

@cakebaker

Description

@cakebaker

While reviewing #5686, I noticed the following difference between GNU install and uutils install:

// setup
$ touch a
$ mkdir target
$ touch target/b

// GNU install
$ install -t target/b -D a
install: failed to access 'target/b': Not a directory
$ install -t target/b/ -D a
install: failed to access 'target/b/': Not a directory

// uutils install
$ cargo run --features="unix" install -t target/b -D a
install: failed to access 'target/b': Not a directory
$ cargo run --features="unix" install -t target/b/ -D a
install: failed to create 'target/b/': entity already exists

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions