【问题标题】:bsd background application does not return immediatelybsd后台应用程序不会立即返回
【发布时间】:2013-01-31 00:04:28
【问题描述】:

我在freebsd上运行后台应用程序,每次关闭应用程序时,必须按回车键才能看到应用程序已经完成。某样东西

$ emacs &
[5] 24515
$ ## close emacs & press return
[5]+  Done                    emacs

我在这里使用 bash。

在其他系统上,我可以看到后台应用程序在关闭后立即返回。

我怎样才能得到这种行为?

【问题讨论】:

    标签: background return bsd


    【解决方案1】:

    尝试set -o notifyset -b 启用异步作业通知。

    这在现代 shell 中默认不启用,因为它会弄乱你的显示,或者更确切地说,你当前正在输入的命令行。

    【讨论】:

      猜你喜欢
      • 2012-08-06
      • 1970-01-01
      • 2017-12-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-01-25
      • 2017-06-25
      • 1970-01-01
      相关资源
      最近更新 更多