Skip to content

Force link behaves differently than on OS X #829

Description

@xixixao

Node version

9.2.1

ShellJS version (the most recent version/Github branch you see the bug on):

0.8.1

Operating system:

OS X

Description of the bug:

On OS X, ln -sf .... works even if the existing link is invalid. With shelljs, which uses unlink under the hood, the ln -sf doesn't work if the existing link isn't valid.

I'd suggest replacing unlink with rm.

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

    bash compatCompatibility issues with bash or POSIX behaviorfixBug/defect, or a fix for such a problem

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions