Skip to content

Conversation

@ariporad
Copy link
Contributor

This is a really cheap hack, but it works.

Fixes #446.

@ariporad ariporad added the fix Bug/defect, or a fix for such a problem label Jun 23, 2016
@ariporad
Copy link
Contributor Author

ariporad commented Jun 23, 2016

@nfischer: You have a windows machine, right?

@nfischer
Copy link
Member

@ariporad This breaks compatibility with unix ls for regular files. Ex:

> exec('ls file.txt');
file.txt
> ls('file.txt');
ls: no such file or directory: file.txt

This bug is not visible on the master branch of ShellJS.

We should probably add tests for ls() being called on regular files though (can't believe this wasn't already tested).

@ariporad
Copy link
Contributor Author

Hmm...

Maybe we should just file a bug in node for this... It doesn't really seem like our problem

@nfischer
Copy link
Member

Whether or not this is an issue we should address, it seems clear that this approach isn't the right way to address this.

@ariporad If you think this is a bug with node's core, feel free to file a report.

@nfischer nfischer closed this Jun 27, 2016
@nfischer nfischer deleted the fix/446 branch July 27, 2016 01:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Bug/defect, or a fix for such a problem

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants