Dir does not work in the console?

I use Julia with the Atom console on Win 10. DIR does not work for some reason.
image
Is this expected, or is this a bug?

1 Like

As indicated by the error message, your operating system does not provide a dir program. Perhaps you were trying to run cmd.exe /c dir? Or perhaps you need readdir() / walkdir() / Glob.jl?

@jameson: I’m confused. Some shell commands seem to be recognized (tree, help), but not others. And this goes not only for the console in Atom, but also for the Julia terminal:


Is this a Windows thing?

1 Like

Yes, Windows doesn’t implement dir as an actual callable program IIRC.

1 Like

@pfitzseb: Of course, the crippled Windows shell! That explains it.

It is a bummer though. It would have been nice to be able to use Julia for commandline stuff.