opam - OPAM:我可以在不同的 shell 中同时在不同的交换机上工作吗?
问题描述
这个问题在 OPAM FAQ [1] 中得到解决,但提供的两种解决方案都不适用于 OPAM v.1.2.2,因为env
和exec
命令都是未知的。如何从不同的交换机运行单个命令?
解决方案
您链接到 opam 2.0 的常见问题解答。这是 opam 1.2:https ://opam.ocaml.org/doc/FAQ.html#Can-I-work-on-different-switches-at-the-same-time-in-different-shells
我可以在不同的 shell 中同时在不同的开关上工作吗?
是的。使用以下之一:
eval $(opam config env --switch <switch>) # for the current shell opam config exec --switch <switch> -- <command> # for one command
这只会影响环境。
推荐阅读
- java - java中的正则表达式拆分逗号分隔的字符串但忽略双引号之间的逗号
- laravel - jwt 函数在刷新页面后返回数据
- arrays - 将多维数组显示为表格
- php - 获取账户子账户树为空
- gitlab - 如何在 gitlab 页面中使用局部变量
- spring - 为什么“需要'outputChannel'或'outputChannelName'的异常”可以通过在测试时添加@SpringBootApplication来解决
- mysql - [SQL]如何使用 LEFT JOIN 和 DELETE 删除连接表列上所有包含 NULL 值的行
- c# - 哪些 HTML 标签可用于在 Telegram Bot 上发送消息?
- bash - 有没有办法用脚本生成 aws mfa 令牌代码?
- eclipse - eclipse RCP:插件通过弹出菜单运行