Skip to content

Symlinking into a directory does not work #832

@loilo

Description

@loilo

Node version:

9.10.1

ShellJS version:

0.7.8

Operating system:

Tested on macOS 10.13.2 and Ubuntu 14.04.5 LTS

Description of the bug:

If the destination of the ln command is an existing directory, shelljs will fail stating that the Destination file exists.

However, according to tests in the mentioned environments, the correct behaviour would be to put a symlink with the source's name into that destination directory.

Example ShellJS command to reproduce the error:

The following commands fail, they should instead create a symlink to /some/source/path as ./path.

shelljs.ln('-s', '/some/source/path', '.')

or

shx ln -s /some/source/path .

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