在我的zsh shell中,我使用jobs
、fg
和bg
命令时出现了奇怪的行为。以下是一个示例(这种情况不仅限于python
):
$ python &
[1] 21214
Python 2.7.8 (default, Oct 19 2014, 16:02:00)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.54)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
[1] + 21214 suspended (tty output) python
$ jobs
[1] + suspended (tty output) python
$ fg 1
fg: job not found: 1
$ bg 1
bg: job not found: 1
我在 OS X 上使用标准的 oh-my-zsh 安装。