You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[PATH REDACTED]/shelljs/src/common.js:399
throw e;
^
Error [ShellJSInternalError]: EISDIR: illegal operation on a directory, read
at Object.readSync (fs.js:524:3)
at tryReadSync (fs.js:349:20)
at Object.readFileSync (fs.js:386:19)
at [PATH REDACTED]/shelljs/src/grep.js:55:45
at Array.forEach (<anonymous>)
at Object._grep ([PATH REDACTED]/shelljs/src/grep.js:49:9)
at Object.grep ([PATH REDACTED]/shelljs/src/common.js:384:25)
at Object.<anonymous> (/home/nfischer/shelljscrash/index.js:4:4)
at Module._compile (internal/modules/cjs/loader.js:1133:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1153:10) {
errno: -21,
syscall: 'read',
code: 'EISDIR'
}
Node version (or tell us if you're using electron or some other framework):
10.17.0
ShellJS version (the most recent version/Github branch you see the bug on):
0.8.3
Operating system:
Mac OSX
Description of the bug:
When using
grep()
, if you're using the form where you hand in afile_array
and one of the files is actually a directory, ShellJS will crash.Example ShellJS command to reproduce the error:
This will crash when it reaches
directoryname
:The text was updated successfully, but these errors were encountered: