我希望保存iex历史记录,并将ERL_AFLAGS设置为:
启动iex时,给出错误信息。
他们是mac os。erl版本Erlang/OTP 24 erts-12.3.2.1 64位ds:8:8:10 jit,长生药版本elixir (1.13.4)。
$ rm ~/.iex_history
$ mkdir ~/.iex_history
$ export ERL_AFLAGS="-kernel shell_history enabled -kernel shell_history_path '"$HOME/.iex_history"'"
$ iex
{"could not start kernel pid",application_controller,"{bad_environment_value,\"/Users/yuchen/.iex_history\"}"}
2022-07-27 04:24:50.471190 application_controller: ~ts: ~ts~n
["syntax error before: ","'/'"]
"/Users/yuchen/.iex_history"
could not start kernel pid (application_controller) ({bad_environment_value,"/Users/yuchen/.iex_history"})
Crash dump is being written to: erl_crash.dump...done发布于 2022-07-26 23:11:14
似乎您忘记了用\来转义内部的\引号:一旦添加它们,它就能工作了:
export ERL_AFLAGS="-kernel shell_history enabled -kernel shell_history_path '\"$HOME/.iex_history\"'"https://stackoverflow.com/questions/73129419
复制相似问题