Skip to content

Difference between bash ls -R and ShellJS ls -R with symlinks #666

@frandiox

Description

@frandiox

Node version (or tell us if you're using electron or some other framework):

Node 7.1.0

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

0.7.6

Operating system:

Arch Linux 64-bit + bash/zsh

Description of the bug:

shelljs-lsr

The output of a normal ls -R (bash) is different from ShellJS' ls -R. I have created a symlink to a_dir directory called a_dir-link. Bash does not follow that symlink with ls -R, it just shows a symlink entry. However, ShellJS follows that link only 1 level. I think the two highlighted lines on the left side should not appear.

Example ShellJS command to reproduce the error:

ls -R

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions