Skip to content

Instantly share code, notes, and snippets.

@mprymek
Created June 29, 2014 10:12
Show Gist options
  • Save mprymek/ca85c63789579935f2a3 to your computer and use it in GitHub Desktop.
Save mprymek/ca85c63789579935f2a3 to your computer and use it in GitHub Desktop.
There's a problem with https://github.com/elixir-lang/elixir/blob/master/lib/elixir/lib/kernel/cli.ex#L327
### with Erlang 17.1
# /usr/local/bin/mix
No file named /usr/local/bin/mix
# ls -l /usr/local/bin/mix
lrwxr-xr-x 1 root wheel 21 Jun 29 11:52 /usr/local/bin/mix -> ../lib/elixir/bin/mix
# iex
Erlang/OTP 17 [erts-6.1] [source] [64-bit] [smp:4:4] [async-threads:10] [kernel-poll:false]
Interactive Elixir (0.14.1) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> :filelib.is_regular "/usr/local/bin/mix"
false
### on another machine with Erlang 17.0
# ls -l /usr/local/bin/mix
lrwxr-xr-x 1 root wheel 21 Jun 12 12:56 /usr/local/bin/mix -> ../lib/elixir/bin/mix
# iex
Erlang/OTP 17 [erts-6.0] [source] [64-bit] [smp:2:2] [async-threads:10] [kernel-poll:false]
Interactive Elixir (0.13.3) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> :filelib.is_regular "/usr/local/bin/mix"
true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment