Nate Fischer

Results 340 comments of Nate Fischer

I'm not sure how often it'd be used to justify pulling it into shelljs instead of relying on exec(). If cross-platform is necessary, you can always have an if statement...

I think tempdir() exists for this purpose (and solves it well enough for me). I'll gladly look over any PRs for this, though

Update: - #488 has an initial implementation of this. - POSIX does not specify `mktemp` last I checked, so the Mac OS and Linux versions differ quite a bit. I...

I think that's how it should get exposed. I don't think just exposing it as-is would be enough to do anything with it though. I suspect that changing `plugin.ShellString` wouldn't...

> Oh, certainly... And that wouldn't be compatible with ES6 modules (You can't assign to something that's been imported, they're actually bindings, not variables.) Interesting, didn't know that.

It returns an array with some extra attributes. Does this break your code?

> I now need to add a trailing / to paths to get content of a folder if I don't use glob: Thanks for pointing that out. I'll investigate.

@jcbohin I can't reproduce the issue with the absence of the trailing `/` Node v6.0, shelljs v0.7, Ubuntu

@jcbohin Yeah, see if you can take a look at this issue on OS X. I'm going to open a PR adding a specific test case for this. If that...