bash -i -c 的作用是什么?

lmi*_*asf 5 bash ide

我想使用 PyCharm 运行 ROS,但我必须修改桌面文件jetbrains-pycharm-ce.desktop

Exec="/opt/pycharm-community-4.0.4/bin/pycharm.sh" %f
Run Code Online (Sandbox Code Playgroud)

到:

Exec=bash -i -c "/opt/pycharm-community-4.0.4/bin/pycharm.sh" %f
Run Code Online (Sandbox Code Playgroud)

我想知道 bash -i -c 正在做什么,因为我不想为未来的项目更改 PyCharm。

sou*_* c. 5

man bash

-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.
Run Code Online (Sandbox Code Playgroud)