Nate Fischer

Results 340 comments of Nate Fischer

For folks who can repro? Would you mind cloning the ShellJS GitHub project, running `npm install`, and then running our unit tests? I'm curious if this same bug will reproduce...

We just use the standard npm workflow (i.e., `npm test` should work). I don't know how `yarn test` works, but it seems like it's doing something different. That specific error...

Hmm, I get a different error when I try similar code locally. I noticed that `exec()` relies on the `pwd()` function to get the current directory. However, when you `rm()`...

> _Update:_ if I use any invalid heap size setting, `exec` fails with `ENOENT`. > > `index.js`: > > ```js > const shell = require('shelljs'); > shell.env.NODE_OPTIONS = '--max_old_space_size=alma'; >...

We could also consider converting this into the `-rw-rw-r--` format instead of octal, but that's a bit more work. --- Other discrepancies I noticed: * `shx ls -l` prints a...

@nathanbrauer I think this could be do-able. This would be lower on the priority list. I think it would be done fairly differently from the colored text, however. But I...

This is tricky to get right. Node does not offer APIs to emulate a TTY while also capturing output. If you don't need to capture output, try: ```js child_process.execFileSync('cmd', [...

Can you include the error output?

If you can provide commands to generate test folders, that would be helpful too.

I just tried this out. I saw some errors using the `class` approach: ```js // define ShellString class like you did ShellString.prototype.foo = function () { return 'hi'; }; //...