-
Notifications
You must be signed in to change notification settings - Fork 743
Open
Labels
bash compatCompatibility issues with bash or POSIX behaviorCompatibility issues with bash or POSIX behaviorfixBug/defect, or a fix for such a problemBug/defect, or a fix for such a problem
Description
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
Labels
bash compatCompatibility issues with bash or POSIX behaviorCompatibility issues with bash or POSIX behaviorfixBug/defect, or a fix for such a problemBug/defect, or a fix for such a problem