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
Exclamation marks are silently removed from filenames, although they are allowed characters in Windows, and an error is reported.
To reproduce: save IO.puts("Hello, world!") as "hello world!.exs" and execute it with:
elixir "hello world!.exs"
It will fail with "no file named hello world.exs" (silently removing the exclamation mark). Also works without quotation marks as a single word (helloworld!.exs).
C:\test>elixir "hello world!.exs"
No file named hello world.exs
Expected behavior
If it is legal in the operating system it should be accepted as an input file, or at least the error message should say "! is not allowed in filename" if it can't be run for some reason.