Dir does not work in the console?


#1

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?


#2

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?


#3

@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?


#4

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


#5

@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.