elixir-lang/elixir — pull request #2611 by lexmag (2014-07-31 15:07:54+00:00)
Title: Handle tilde in `Path.expand/1,2` properly

- `~`:

Ruby, Zsh, Python expand it to `HOME`
- `~/dir`:

Ruby, Zsh, Python expand it to `HOME` + `/dir`
- `~user`:

Ruby, Zsh, Python use `getpwnam` call but behaves differently.
In case of `user` existence `user`'s dir will be returned, otherwise:
- Python returns path unchanged
- Ruby, Zsh raise