Whilst setting up a Elixir development environment I ran into a interesting problem.
I created a new .bat file in Windows 10 to start up Elixir’s Interactive Shell. The command I wanted to run was:
So I created a new Windows .bat file called iex.bat which contained this single command.
Unfortunately when I double clicked on the icon instead of seeing the Elixir Interactive Shell I saw that the command was continually looping:
Fortunately this Stackoverflow answer helped in identifying the problem. If you create a .bat file with the same name as the command you wish to run you will end up in a endless loop!
If this article has helped you, please take a moment to up vote the Stackoverflow answer.