Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Endless loop on windows and FindUp.sync #17

Open
mgreter opened this issue Oct 26, 2016 · 1 comment
Open

Endless loop on windows and FindUp.sync #17

mgreter opened this issue Oct 26, 2016 · 1 comment

Comments

@mgreter
Copy link

mgreter commented Oct 26, 2016

Related to: #4 and #5
Got that bug while working with gulp-rtlcss and tracked it down:
https://github.com/Filirom1/findup/blob/master/index.js#L96
Demo repo: https://github.com/mgreter/bug-gulp-rtl-with-cwd

@mgreter
Copy link
Author

mgreter commented Oct 26, 2016

Boils down to the following:

var root = 'directory';
console.log('root 0: ', root);
root = Path.join(root, '..');
console.log('root 1: ', root);
root = Path.join(root, '..');
console.log('root 2: ', root);
root = Path.join(root, '..');
console.log('root 3: ', root);

Gives:

root 0:  directory
root 1:  .
root 2:  ..
root 3:  ..\..

Version:

$ node -v
v4.5.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant