I want run “source” command by System.cmd, but it does not work:
iex(1)> System.cmd("echo", ["hello"])
{"hello\n", 0}
iex(2)> System.cmd("source", ["~/.bashrc"])
** (ErlangError) Erlang error: :enoent
(elixir 1.12.3) lib/system.ex:1041: System.cmd("source", ["~/.bashrc"], [])
Am I doing something wrong?