![bash -i -c 起什么作用?](https://linux22.com/image/981756/bash%20-i%20-c%20%E8%B5%B7%E4%BB%80%E4%B9%88%E4%BD%9C%E7%94%A8%EF%BC%9F.png)
我想使用 PyCharm 运行 ROS,但我必须修改桌面文件jetbrains-pycharm-ce.desktop
:
Exec="/opt/pycharm-community-4.0.4/bin/pycharm.sh" %f
到:
Exec=bash -i -c "/opt/pycharm-community-4.0.4/bin/pycharm.sh" %f
我想知道 bash -i -c 正在做什么,因为我不想为未来的项目改变 PyCharm。
答案1
-i If the -i option is present, the shell is interactive.
-c command
command is executed in a subshell environment, and its
output is used as the possible completions.